[dba-VB] CheckBox: Checked and CheckState

Charlotte Foust cfoust at infostatsystems.com
Thu May 8 17:47:10 CDT 2008


If the checkboxes are bound, it's easier to use the validating event and
check for Checked.  Checkbox values get a little strange and the checked
property changes before the value does.

Charlotte Foust 

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock
Sent: Thursday, May 08, 2008 3:14 PM
To: dba-vb at databaseadvisors.com
Subject: Re: [dba-VB] CheckBox: Checked and CheckState

Hi Doris

So that's it? CheckedChanged happens "when" the state changes,
CheckStateChanged after?
Does this relate to the data source it is bound to? Like BeforeUpdate
and AfterUpdate in Access?

The EventArgs methods seem identical, however, for the two events.

/gustav

>>> mikedorism at verizon.net 08-05-2008 23:43 >>>
You have to change the checkbox value (CheckedChanged event) before you
can examine the CheckStateChange -- kind of like you have to process the
Validating event before the Validated event.

Doris Manning
Database Administrator
Hargrove Inc.

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock
Sent: Thursday, May 08, 2008 12:30 PM
To: dba-vb at databaseadvisors.com
Subject: [dba-VB] CheckBox: Checked and CheckState

Hi all

What is the difference between these two events for a bound CheckBox?

Whatever I try, first event CheckedChanged is fired, then
CheckStateChanged
- no matter if I browse the source it is bound to or if I click or
keypress the CheckBox itself (has focus).

/gustav



_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com





More information about the dba-VB mailing list