Dabiel Kabuto
Dabiel Kabuto

Reputation: 2862

How to get the focused control in Windows 8?

How to get the focused control in Windows 8? Now I am using OnLostFocus and OnGoFocus, using a variable to flag when the control has the focus. It works fine for a small number of controls, but I would need a general solution.

In Windows Forms, there is a function to get the focused control but I cannot find it in Windows 8.

Upvotes: 0

Views: 460

Answers (1)

Filip Skakun
Filip Skakun

Reputation: 31724

Use FocusManager to get the currently focused control.

Upvotes: 5

Related Questions