RadioButton doesn't show de focus rect

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

Jani Järvinen [MVP]

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/
 

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