checkedListBox remove items
Jan 17, 2011 at 6:20pm UTC
I want to remove selected
itemS from
on
, but so far I succeed only at removing only one item ~_~ all other's tries ended up on
not compiling or application
crashes or just
removes not all I need to (at least in visualization)
Last edited on Jan 19, 2011 at 12:29am UTC
Jan 19, 2011 at 12:30am UTC
Solved. The main case was that checkedListBox1->CheckedItems->Count is descending
1 2 3 4 5 6 7 8 9 10
if (checkedListBox1->CheckedItems->Count != 0)
{
String ^ s;
while (checkedListBox1->CheckedItems->Count < 0)
{
s = String::Concat(s, checkedListBox1->CheckedItems[0],"\n" );
checkedListBox1->Items->Remove(checkedListBox1->CheckedItems[0]);
}
MessageBox::Show(s, "Istrinti is pasirinkimo saraso" );
}
Last edited on Jan 19, 2011 at 12:30pm UTC
Jan 19, 2011 at 1:17am UTC
I see,
this language is C# ,not C++
Also a lot of newers can't make some differences from C# and C++
Jan 19, 2011 at 12:18pm UTC
I noticed that C++ and C# are similar. But here it's C++/CLI.
What made you think that it is C#?
Last edited on Jan 19, 2011 at 12:19pm UTC
Topic archived. No new replies allowed.