Release focus from all controls

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!
 
D

Douglas J. Steele

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.
 
M

Mike Kampff

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

Top