Calling a function from other thread in C#
<p>I have main GUI thread with a function XYZ() to do something about GUI. 
In other thread, if I call XYZ() from handle of main GUI, it display error 
       "Cross-thread operation not valid: Control 'Button00' accessed from a thread other than the thread it was created on."</p>

<p>How should I solve this? I think I need to send a message to GUI thread to do XYZ function. Please help me.</p>

<p>Thanks.</p>

<p>Ankata</p>
