Checked List Box problem

Hello.

I have a checked list box and I want to set the checked items in it. I wanted to set the item to the top index in the box. I tried:

checkedListBox1->CheckedIndices = checkedListBox1->TopIndex;

That will not work it comes out with the error:

1
2
3
error C2039: 'set' : is not a member of 'System::Windows::Forms::CheckedListBox::CheckedIndices'

see declaration of 'System::Windows::Forms::CheckedListBox::CheckedIndices'



How would I be able to modify the checked items and indexes of a checked list box?

Also how would I be able to get the checked items of the checked list box?

Thank you.
Topic archived. No new replies allowed.