private void timer1_Tick(object sender, EventArgs e)
{
foreach (Form f in Application.OpenForms)
{
Console.WriteLine("Name: " + f.Name + " Focused:" + f.Focused);
Console.WriteLine("is activted? " + ((Form.ActiveForm == f) ? "true" : "false"));
}
}