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?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

FroglegRank #1,020 · 1.9K reputationPosted Sep 22, 2012, 10:32 AM EDT
private void Form1_Activated(object sender, EventArgs e)
{
label1.Text=("Active");
}
private void Form1_Deactivate(object sender, EventArgs e)
{
label1.Text = ("Not active");
}
evan liewer25 reputationPosted Sep 22, 2012, 11:55 AM EDT