473,387 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

little Checkbox question

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
4 1248

"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
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
* "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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: claudel | last post by:
Hi I have a newb PHP/Javascript question regarding checkbox processing I'm not sure which area it falls into so I crossposted to comp.lang.php and comp.lang.javascript. I'm trying to...
10
by: Jennyfer J Barco | last post by:
Hello, I have a datagrid that brings some information from a query. I need to have a checkbox in each row so the user can select the rows he wants to reprint. Is it possible to have a checkbox...
34
by: clinttoris | last post by:
Hello Experts, I have been told to post this in the Javascript forum as I want to do this client side just before my form gets submitted. Once the user clicks the submit button a javascript...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.