I need to make a button focus at the end of a thread. The Button.Focus() method does not seem to work.
for exmaple:
Button1_Click(object sender, EventArgs e)
{
Thread myThread = new Thread(theThread);
myThread.Start();
}
theThread()
{
...
Button2.Focus(); // does not seem to focus the button
}
However, if I put Button2.Focus() in Button1_Click it will focus, but for my project I can't do that.