471,066 Members | 1,288 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,066 software developers and data experts.

RadioButton doesn't show de focus rect


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.

Aug 7 '06 #1
1 2088
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
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
Aug 7 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Peter | last post: by
1 post views Thread by Dmitry V. Markin | last post: by
2 posts views Thread by Brano | last post: by
3 posts views Thread by jahuer1 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.