Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

Can anybody tell me how to change the color of the radiobutton i.e, whenever it is checked a small blue dot appears this blue dot i want it to be either red or green.

Thanks in advance.
Posted
Comments
BillWoodruff 17-Mar-14 8:18am    
The only way you could do this with the WinForm RadioButton is by setting its 'Appearance Property to 'Button, and then switching different images to display using the 'Image Property.

If you do this, you will do a lot of work for very little value returned, and you will probably confuse your users.

By the way, how can a RadioButton be both Blue and then either Red, or Green ?

I suggest you forget the idea of using the standard RadioButton, and, if you must, make a custom UserControl with the functionality you require.

Hi, MSDN has a nice example with all the cosmetic changes you may make (altough not all of them at) http://msdn.microsoft.com/en-us/library/cc296247(v=vs.95).aspx

There is also much more definitions at: RadioButton Class from MSDN. Hope this help. (The property you are looking at is
VB
RadioButton.Checked Property
 
Share this answer
 
A radio button, button and text together, is one control. If you want to change its appearance, you can override OnPaint, but you need to draw both parts.

See this example : http://devblog.antongochev.net/2008/07/09/create-custom-ui-appearance-for-winforms-radiobutton-part-3/[^]

-KR
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900