Home All Groups Group Topic Archive Search About

Checked List Box (CheckedState)

Author
28 Jun 2005 1:55 PM
marcmc
Hey All,

I want to find whether my first item within my CheckListBox is in a checked
or unchecked state. I tried the following but it did not work, Can anyone
help.

If CkListBoxRoutines.Items.Item(0) = CheckedState.Checked Then
messagebox("Marc")
End If

Any ideas how to do this?

Cheers

Author
28 Jun 2005 2:10 PM
marcmc
took a little searching but it's

If ChkListBoxRoutines.GetItemCheckedState(0) = checkState.Checked Then

msgbox

endif

Show quoteHide quote
"marcmc" wrote:

> Hey All,
>
> I want to find whether my first item within my CheckListBox is in a checked
> or unchecked state. I tried the following but it did not work, Can anyone
> help.
>
> If CkListBoxRoutines.Items.Item(0) = CheckedState.Checked Then
> messagebox("Marc")
> End If
>
> Any ideas how to do this?
>
> Cheers 
>
Author
28 Jun 2005 2:14 PM
Armin Zingler
"marcmc" <mar***@discussions.microsoft.com> schrieb
> I want to find whether my first item within my CheckListBox is in a
> checked or unchecked state. I tried the following but it did not
> work, Can anyone help.
>
> If CkListBoxRoutines.Items.Item(0) = CheckedState.Checked Then
> messagebox("Marc")
> End If
>
> Any ideas how to do this?

if CkListBoxRoutines.getitemchecked(0) then


Armin