I have gotten the txtaircraftId to appear in the listbox by using this menu event:
Private Sub mmuRecordSaveArrival_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mmuRecordSaveArrival.Click
Dim newitemtext As String = txtAircraftID.Text
Me.lstAircraftID.Items.Add(newItemText)
End Sub
When I highlight the aircraftId in the listbox it reappears in the aircraftID textbox I did that with this event statement:
Private Sub AircraftID_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lstAircraftID.SelectedIndexChanged
Dim sAircraftID As String = lstAircraftID.SelectedItem.ToString()
txtAircraftID.Text = lstAircraftID.SelectedItem.ToString
This is what I need to happen when I entered the aircraftId and clicked the menu to record the aircraftID the data I placed in the CarrierName textbox should also be recorded, so when I highlight the aircraftID in the listbox along with the aircraftID appearing in it's textbox the CarrierName shold appear in it's textbox.
Can you help me accomplish this??