How to check, if a control has focus

M

Martin

Hi,
I want to deactivate some controls in runtime, but when a control has focus,
error occurs.
How can I check, if this control has currently focus?

Thanks
Martin
 
P

Paul Overway

Use Screen.ActiveControl. Or...assign focus to a *safe* control, i.e., one
that isn't going to be disabled.
 
Top