NoName
NoName

Reputation: 8025

How to determine WinForm is being focus or not while press HotKey?

I set Ctrl + Space to do this:

I almost finish my work, the only thing is I don't know how to detemine if my Form1 is in focus or not. Can you help me? Thank a lot!!!

Upvotes: 0

Views: 154

Answers (1)

Akash KC
Akash KC

Reputation: 16310

Handle in Form.Activated event when the form is focus..

Similarly, when form is out of focus, handle it on Form.Deactivate event....

Upvotes: 2

Related Questions