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

I am trying to call a delegate to update my form with data. This is my first time fooling with delegates so I think I need a touch of hand-holding. I appear to have set up everything correctly it is just the calling the delegate over two threads
I have at the moment got the line
C#
 //myForm1.AccessFormMarshalDelegate1(InputData);
//  myForm1.AccessFormMarshall(InputData);

which do not work (hence the comments) I need to use an Invoke command so I can cross thread in safety, I am tring to this straight after I read the port the port with the data on. I was hoping that the following would work
C#
myForm1.Invoke(AccessFormMarshall(InputData));

but it does not can anyone see why data would arrive at the serial port and not be displayed on the form otherwise?

Glenn
Posted

1 solution

Why don't you follow the documentation[^] recipe?
 
Share this answer
 
Comments
glennPattonWork3 19-Dec-12 6:15am    
Thank you, looks like what I was looking for probably will have more questions later. Glenn

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