2
Answers

Thread safe calls to windows forms controls

latika singh

latika singh

13y
2k
1
I have a text box that constantly updates value coming in from a serial device. When I compile the code and build the project in .exe format everything works fine. But when I run the project from the VS 2008 environment then it displays a message box saying that the control 'textbox' accessed from a thread other than the thread it was created.

Can anyone make suggestions to the problem. It points to the following line in the code:
Me.tReading.Text = Format(reading, "#0.00000")
Answers (2)