augie0216 0 Light Poster

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.