private void Form1_Deactivate(object sender, EventArgs e)
{
SetForegroundWindow(this.Handle.ToInt32());
Activate();
BringToFront();
textBox1.Focus();
}
private void Form1_Leave(object sender, EventArgs e)
{
SetForegroundWindow(this.Handle.ToInt32());
Activate();
BringToFront();
textBox1.Focus();
}
So far none of this has worked. Suggestions? Also, what code tag should I use? I had to break all of that myself.
James KieferPosted May 25, 2009, 8:36 AM
I have tried:
Focus()
BringtoFront()
SetForegroundWindow(this.Handle.ToInt32())
and Activate();
nickPosted May 25, 2009, 8:31 AM
James KieferPosted May 25, 2009, 8:25 AM
nickPosted May 25, 2009, 8:19 AM