Release focus from all controls

  • Thread starter Thread starter Mike Kampff
  • Start date Start date
M

Mike Kampff

What code would I use to release focus from all controls
on my form? I need to release all focus because I want to
hide all the controls, leaving only Labels visible.

Thanks!
 
Focus can only be on a single object, so all you need to do is set the focus
to some object that you're not trying to make invisible.
 
So if the only controls that are on the form that I want
visible are labels, then what? Labels can't take focus.

I thought there was some way to set the focus to the form
itself. Just like when the form initially opens and if
there are no focus-enabled controls visible.

Thanks
Mike
 

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

Release focus from all controls 1
Kill Focus on Subform 2
Cancel On Lost Focus Event 3
read focus of controls 1
Remove SetFocus 3
Focus after DblClick 4
Focus Issue 11
odd focus behaviour 7

Back
Top