S
slg
Gurus, I have a Winform which has a button. When the button click function
creates a thread.
I want the thread to call the button click again . I can have only one
instance of the
thread running at a time.
I want to automate testing of my function.
Any thoughts.
TIA
private void btnProcessFiles_Click(object sender, EventArgs e)
{
Thread trd = new Thread(new ThreadStart(this.ThreadedProcessFiles));
trd.IsBackground = true;
trd.Start();
}
void ThreadedProcessFiles()
{
// how can i call btnProcessFiles_Click
}
creates a thread.
I want the thread to call the button click again . I can have only one
instance of the
thread running at a time.
I want to automate testing of my function.
Any thoughts.
TIA
private void btnProcessFiles_Click(object sender, EventArgs e)
{
Thread trd = new Thread(new ThreadStart(this.ThreadedProcessFiles));
trd.IsBackground = true;
trd.Start();
}
void ThreadedProcessFiles()
{
// how can i call btnProcessFiles_Click
}