newguy
Well-known member
Hi All,
OK, so I am using listbox1 to send the selected.items to listbox2, when the item is sent I also want to delete the selected.items in listbox1, got it working somewhat - the only problem is it enters the item twice, once with the item(text) and DateAndTime.now and the second time with just the DateAndTime.now and no item(text).
So listbox2 looks like...with I click of the item in listbox1...
8/30/08 830 PM : (text)
8/30/08 830 PM :
OK, so I am using listbox1 to send the selected.items to listbox2, when the item is sent I also want to delete the selected.items in listbox1, got it working somewhat - the only problem is it enters the item twice, once with the item(text) and DateAndTime.now and the second time with just the DateAndTime.now and no item(text).
VB.NET:
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
Dim int As String
int = ListBox1.SelectedItem
ListBox2.Items.Add(DateAndTime.Now & " : " + int).ToString()
ListBox1.Items.Remove(int)
End Sub
So listbox2 looks like...with I click of the item in listbox1...
8/30/08 830 PM : (text)
8/30/08 830 PM :
Last edited: