I have an windows application developed using C#. In this application, I am creating one process. I want to enable and disable few buttons when Process_Exited() event occures. In Process_Exited() method, I have written code to enable buttons but at runtime I get error as
"Cross-thread operation not valid: Control 'tabPage_buttonStartExtraction' accessed from a thread other than the thread it was created on."
My code snippet is :
void rinxProcess_Exited(object sender, EventArgs e)
{
tabPage_buttonStartExtraction.Enabled = true;
tabPageExtraction_StopExtractionBtn.Enabled = false;
}
Can anyone suggest how to make this possible?