How to get the form active control?

Posted by PabloG on Stack Overflow See other posts from Stack Overflow or by PabloG
Published on 2010-05-28T13:32:44Z Indexed on 2010/05/28 13:41 UTC
Read the original article Hit count: 232

Filed under:
|
|
|

Is there a way to get the form active control? I was checking in the help for the "Support.GetActiveControl" method but it isn't supported :) for the Compact Framework.

I suppose that I can track the focus by adding a custom GotFocus event handler to all the form controls, but I'm looking for a more generic way that can be implemented for any form.

© Stack Overflow or respective owner

Related posts about c#

Related posts about winforms