G
Guest
Dear helpers,
how do I get the value indeces of items checked in CheckedListBox?
I have tried to do this but It doesn't seem work??
foreach(int index in caseIssuesCheckedListBox.CheckedIndices)
{
for (int i = 0; i < caseIssuesCheckedListBox.Items.Count; i++)
{
if(caseIssuesCheckedListBox.GetItemCheckState(index) == CheckState.Checked)
{
//Method goes here...
}
}
}
Thank you.
how do I get the value indeces of items checked in CheckedListBox?
I have tried to do this but It doesn't seem work??
foreach(int index in caseIssuesCheckedListBox.CheckedIndices)
{
for (int i = 0; i < caseIssuesCheckedListBox.Items.Count; i++)
{
if(caseIssuesCheckedListBox.GetItemCheckState(index) == CheckState.Checked)
{
//Method goes here...
}
}
}
Thank you.