Hi
I'm just starting out learning c# and at the moment playing with a checkedlistbox in a windows form.
I have a query that populates the checkedlistbox then I want to iterate through the checked items and get the text into a string.
This is what I've been trying
for (int i=0; i< checkedListBox1.CheckedItems.Count;i++)
{
string ticked = checkedListBox1...?..(i).ToString();
..//code that uses ticked;
}
Is this completely wrong or is there something simple I'm missing?
Any help would be great.
I'm just starting out learning c# and at the moment playing with a checkedlistbox in a windows form.
I have a query that populates the checkedlistbox then I want to iterate through the checked items and get the text into a string.
This is what I've been trying
for (int i=0; i< checkedListBox1.CheckedItems.Count;i++)
{
string ticked = checkedListBox1...?..(i).ToString();
..//code that uses ticked;
}
Is this completely wrong or is there something simple I'm missing?
Any help would be great.