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.
nick5 pointsPosted May 25, 2009, 4:19 AM EDT
James Kiefer3 pointsPosted May 25, 2009, 4:25 AM EDT
nick5 pointsPosted May 25, 2009, 4:31 AM EDT
James Kiefer3 pointsPosted May 25, 2009, 4:36 AM EDT
I have tried:
Focus()
BringtoFront()
SetForegroundWindow(this.Handle.ToInt32())
and Activate();