greetings, im new to programming.
at the moment my application uses delegates to process/execute methods that reside in a another class/object.
but i was getting an error stating that they were residing in separte threads. so after searching the web i came up with this:
this.Invoke(new Action(delegate() { this.ChatRichTextBox.AppendText(EventArgs.commMessage); }));
this has worked fine accept i have no idea whats going on. i just pasted the code and it worked.
at present now though i have a need for doing this differently as the compiler says it cant do > < != operations within this action.
please advise on how best to implement this?
thank you very much.