Listbox Issue

  • Thread starter Thread starter yoinks
  • Start date Start date
Y

yoinks

I am trying to move data from 1 listbox to another (vb.net),
what is the correct syntax. What I have tried doesn't work.
This would be by clicking on a button to move from 1 to the
other. Thank you.
 
Need more information. Can you give a sample of whats worng?
Dim y As Integer

For y = 0 To ListIssue.Items.Count - 1
ListIssueStorage.Items.Add(ListIssue.Items.Item(y))
Next

For y = ListIssue.Items.Count - 1 To 0 Step -1
ListIssue.Items.RemoveAt(y)
Next
 
I am assuming you wont need to add at same location on the other side.. so
what you can try is move all remove items to a string[] array and then loop
through them and add to the new list

VJ
 
Back
Top