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
 
Back
Top