Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Cross-thread operation not valid: Control 'label2' accessed from a thread other than the thread it was created on.

$
0
0

Hi experts,

i have small issue

i am receiving data from electric meter and i displayed in rich text box

READ
?(?????? & ?????? ???????,??????,2010)
?(02365113)
?(150413 130623 1)
?(??04.00)
??(00002550)
??(00002550)
?(0002 010413 010000)
?(21733)
?(0000)
?(0000 000)
?(5138)
!
*

now the issue is 

i splitted the data and stored in an string arry .

when i displayed the split data in to label like 

label.text=arry[0].tostring();

label2.text=arry[1].tostring();

at this time it show cross thread exception, how can i solve pls help me

i am trying this up to 4 days, not solved the problem still

Thanks and regards,

dhayanand 


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>