M
Maarten
hi all,
I have a usercontrol with a checked listbox
this usercontrol is placed on a form1
is there a way to get the checked items of the checkedlisbox in the
usercontrol with a command from form1?
i beleave i have to do this with "get" and "set in a class
i've never worked with classes before
the way to get the items from the listbox is the code below.
thanks Maarten.
public void getchecked()
{
for (int x = 0; x <= (lstChannels.Items.Count-1); x++)
{
if (lstChannels.GetItemChecked(x))
{
}
else
{
}
}
I have a usercontrol with a checked listbox
this usercontrol is placed on a form1
is there a way to get the checked items of the checkedlisbox in the
usercontrol with a command from form1?
i beleave i have to do this with "get" and "set in a class
i've never worked with classes before
the way to get the items from the listbox is the code below.
thanks Maarten.
public void getchecked()
{
for (int x = 0; x <= (lstChannels.Items.Count-1); x++)
{
if (lstChannels.GetItemChecked(x))
{
}
else
{
}
}