adding to a listbox
I'm using a menu to add an item to the listbox. I'm using this code.
Private Sub mmuRecordSaveArrival_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mmuRecordSaveArrival.Click
Me.AircraftID .Items.Add(txtAircraftID.Text)
I enter the AircraftID in the text box but when I click the menu the word system.window appears in the listbox instead of the aircraftID.
I can't figure out why, is it because i don't have the selected index code filled out.
Any help is appreciated
|