little Checkbox question

  • Thread starter Thread starter KC
  • Start date Start date
K

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?
 
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.
 
Hi,

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

Ken
 
* "KC said:
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.
 
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
 
Back
Top