I am not really sure if my title is correct since I dont really know what im doing.
I'm creating a form in Visual studio which communicates with an arduino through serialPort.
In the form I have about 9 textboxes which need to be updated / have text appended to them.
When I do that I get the "Cross thread operaton not valid" exception. After looking at stackoverflow I found a solution which is this: [Cross-thread operation not valid: Control 'textBox1' accessed from a thread other than the thread it was created on][1]
This solution works fine for me but its a bit awkward. since I have 9 textboxes ,I had to create 9 "SetText" methods which is quite clunky. I was wondering if there is a more general solution which I can use on every textbox I have?
Thanks in advance