I 'm trying to code the SelectedIndexChanged event to display an airplane in other control instances when the user selects an AircraftID. I have three textboxes: aircraftID,CompanyName,and Fuel charges. When I input data in all three textboxes and click the menu the aircraftID appears in the listbox. I need to when I select the aircraftID from the listbox the other textboxes get populated with their respective data.
Heres the code I have so far:
Private Sub AircraftID_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lstAircraftID.SelectedIndexChanged
Dim curitem As String = lstAircraftID.SelectedItem.ToString()
txtAircraftID.Text = curitem
End Sub
I just learning vb.net so I don't even know if this is possible.
Thanks