Setting for Form Focus
What is the method for when a form comes into focus? I have a window open, and then the user can open multiple other windows, and do things, but once the original form comes into focus I want some code to run. I cannot find a .Focus or .GetFocus for an entire Form Window. what am i missing?
FroglegPosted Sep 22, 2012, 2:32 PM
private void Form1_Activated(object sender, EventArgs e)
{
label1.Text=("Active");
}
private void Form1_Deactivate(object sender, EventArgs e)
{
label1.Text = ("Not active");
}
evan liewerPosted Sep 22, 2012, 3:55 PM