Click here to Skip to main content
15,861,168 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am writing an app to emmulate a PSION, and have neatly created a front end in C# that relies on multiple forms I now need to send some commands via a serial port when I try I get

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

I take that to mean I can't open the port on Form1 and talk to via Form2, is the correct method then to create the command string pass it back to Form1 and then pass the data to Form2 as a string?

However I know that the serial port is fine as test bit of code I put in says hello!


Thanks
Glenn
Posted

1 solution

 
Share this answer
 
Comments
glennPattonWork3 26-Oct-11 6:34am    
I think perhaps my method of using tabbed pages is faster than that, but thanks for the info, I will read when I have time!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900