By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,234 Members | 1,908 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,234 IT Pros & Developers. It's quick & easy.

little Checkbox question

P: n/a
KC
What's the difference between 'Checked' & 'CheckState' for the checkbox? Am
I wrong or do they do the same thing, which begs the question why?

---
Ken
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a

"KC" <yo*@dontneed.this> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
What's the difference between 'Checked' & 'CheckState' for the checkbox? Am I wrong or do they do the same thing, which begs the question why?


Checked is a Boolean which tells you if the check box is unchecked (False)
or EITHER checked or indeterminate (True). It's a quick way of determining
whether the check box is in any sort of checked state or not.

CheckState returns an enum to give you the EXACT state of the check box.
Nov 20 '05 #2

P: n/a
Hi,

There are 3 CheckStates. Checked, Unchecked, Indetermined ( grayed
out and checked). Checked will return true if it is checked otherwise
false.

Ken
--------------
"KC" <yo*@dontneed.this> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
What's the difference between 'Checked' & 'CheckState' for the checkbox? Am
I wrong or do they do the same thing, which begs the question why?

---
Ken

Nov 20 '05 #3

P: n/a
* "KC" <yo*@dontneed.this> scripsit:
What's the difference between 'Checked' & 'CheckState' for the checkbox? Am
I wrong or do they do the same thing, which begs the question why?


In addition to the other replies: Both properties are documented in the
help files. You can press the F1 key to open the documentation. If the caret
in the text editor is placed on the property, the documentation for the
property will be shown.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
<URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #4

P: n/a
KC
Actually that's why I posted the question! When I highlighted the 'Checked'
property the definition at the bottom said "Indicates whether the check box
is checked or unchecked". Highlighting 'CheckedState' get you, "Indicates
the check state of the check box".

Jeff cleared it up in his post.

Ken
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uz**************@TK2MSFTNGP11.phx.gbl...
* "KC" <yo*@dontneed.this> scripsit:
What's the difference between 'Checked' & 'CheckState' for the checkbox? Am I wrong or do they do the same thing, which begs the question why?
In addition to the other replies: Both properties are documented in the
help files. You can press the F1 key to open the documentation. If the

caret in the text editor is placed on the property, the documentation for the
property will be shown.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
<URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.