Huge problem.....

  • Thread starter Thread starter Jay
  • Start date Start date
J

Jay

CheckedListBox1.CheckedItems.CopyTo(ANYARRAYNAME, 0)

Does not copy JUST the checked items as an array but an array of all the
items in the list box checke dor not.



How can I fix this?
 
Jay said:
CheckedListBox1.CheckedItems.CopyTo(ANYARRAYNAME, 0)

Does not copy JUST the checked items as an array but
an array of all the items in the list box checke dor not.

Works as expected on .NET 1.0:

\\\
Dim astr() As String = _
New String(Me.CheckedListBox1.CheckedItems.Count - 1) {}
Me.CheckedListBox1.CheckedItems.CopyTo(astr, 0)
Dim s As String
For Each s In astr
MsgBox(s)
Next s
///
 
Back
Top