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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pasan RatnayakePosted Sep 1, 2010, 2:59 AM
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.
Majid KamaliPosted Sep 1, 2010, 7:33 PM
Majid KamaliPosted Aug 31, 2010, 5:43 AM
I want to change check color.
Pasan RatnayakePosted Aug 31, 2010, 5:23 AM
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).