Link to home
Start Free TrialLog in
Avatar of chrisryhal
chrisryhal

asked on

WinForm Focus

How can I tell if focus is on a WinForm or not?

I tried doing this, but no luck:

      private static void OrderForm_Active(object sender, EventArgs args)
      {
            MessageBox.Show(args.ToString());
      }

      private static void OrderForm_Focus(object sender, EventArgs args)
      {
            MessageBox.Show(args.ToString())
      }


ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial