How to check, if a control has focus

  • Thread starter Thread starter Martin
  • Start date Start date
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
 
Use Screen.ActiveControl. Or...assign focus to a *safe* control, i.e., one
that isn't going to be disabled.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

read focus of controls 1
subform LostFocus 1
set focus for a control 1
Kill Focus on Subform 2
Focus jumps a control 2
Lost Focus Woes 7
set focus & screen movement 4
highlight the cursor position 4

Back
Top