Hi.
When a RadioButton or CheckBox is Checked, it's sign color is Green (in XP).
Can I change this color to another one?
Thanks :-)
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pasan Ratnayake100 reputationPosted Aug 31, 2010, 10:59 PM EDT
I have done a simple overriding in the code attached herewith. If you want a check with a different color, all you have to create an image of a check with a different color using a image processing tool and draw it. I've included a comment where you want to write that coding.
To use the class library that I have uploaded here, create a blank solution and this class library to that. Add another windows form project to the solution and add the reference of the class library to the windows form project. After building the solution you will see that in the toolbox there will be a new control which can be used like a normal check box.
Hope this helps.
PS: I have used VS2008 for this, just so you know.
Pasan Ratnayake100 reputationPosted Aug 31, 2010, 1:23 AM EDT
Shouldn't you be abit more specific? At the very least state whether it's a Windows form control or Web control and of what do you need to change the color (i.e. the color of the check or the color of the background of the checkbox or the border color of the checkbox).
Majid KamaliRank #6,453 · 266 reputationPosted Aug 31, 2010, 1:43 AM EDT
I want to change check color.
Majid KamaliRank #6,453 · 266 reputationPosted Sep 1, 2010, 3:33 PM EDT