RadioButton doesn't show de focus rect

  • Thread starter Thread starter osmarjunior
  • Start date Start date
O

osmarjunior

I override the OnShown event of a form and call both methods Select()
and Focus() of a RadioButton.
The RadioButton is selected, but the focus rect is not visible.
If I press Tab key to exit the RadioButton, and press Shift+Tab to back
to the control, then the focus rect is visible...

But I wanna make the focus rect visible as soon as the form is shown.
How can I ensure this?

Thanks.

Junior.
 
Hi,
But I wanna make the focus rect visible as soon as the form is shown.
How can I ensure this?

Hmm, by setting the tab order of the radion button to zero so that it is the
first control on the form to get focus?

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
(e-mail address removed)
http://www.saunalahti.fi/janij/
 
Back
Top