[Solved]Three position checkbox? [modified]
-
I want a control where there's three options: On (White background with check), Off (grayed background, no check) and Neutral (white background, no check). Any ideas?
modified on Thursday, September 4, 2008 1:10 PM
Jordanwb wrote:
grayed background
.Enabled=false;
-
Jordanwb wrote:
grayed background
.Enabled=false;
But then it will not respond to events. AFAIK there is not a 3 state checkbox standard in VS.
Never underestimate the power of human stupidity RAH
-
I want a control where there's three options: On (White background with check), Off (grayed background, no check) and Neutral (white background, no check). Any ideas?
modified on Thursday, September 4, 2008 1:10 PM
You may have to create your own control, inheriting from the checkbox control.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
-
I want a control where there's three options: On (White background with check), Off (grayed background, no check) and Neutral (white background, no check). Any ideas?
modified on Thursday, September 4, 2008 1:10 PM
There's a property that will allow your checkbox to have a tri-state. You should, in that case, check for the "CheckState" property instead of the "Checked" property. You have Off --> not checked On --> Checked with "V" In between --> Checked filled with a square. hope this helps.
V.
Stop smoking so you can: Enjoy longer the money you save. Moviereview Archive -
I want a control where there's three options: On (White background with check), Off (grayed background, no check) and Neutral (white background, no check). Any ideas?
modified on Thursday, September 4, 2008 1:10 PM
-
There's a property that will allow your checkbox to have a tri-state. You should, in that case, check for the "CheckState" property instead of the "Checked" property. You have Off --> not checked On --> Checked with "V" In between --> Checked filled with a square. hope this helps.
V.
Stop smoking so you can: Enjoy longer the money you save. Moviereview Archive -
Use a
CheckBox
. Set theThreeState
property totrue
.Despite everything, the person most likely to be fooling you next is yourself.