New to C#
I want to use the backgroundworker to start communicating via RS232 port.
I have set up the RS232 and this is working, but I am having trouble getting text into the textbox. I have used the invoke method and this worked but then i added another textbox and got a cross thread exception.
Having read about the backgroundworker it seems easier for a beginner to start with.
But i know a serialport event will be raised when data arrives, but can i put the data string into a textbox on the UI thread or is it still on the worker thread?
Any help appreciated as I have read many articles but still not found a soultion.
And a few lines of code would help.
This post has been edited by questuk: 09 December 2010 - 05:59 AM