Jump to content
The simFlight Network Forums

[Help] AI Traffic VB2010

Recommended Posts

Hi, i am making a program that reads AI traffic information. I have a listbox that displays the Airline & Flight number of each AI Flight in the area. I have a button that when clicked I would like a msgbox to display and show more information about that one AI flight that was selected in the listbox. How do i do that?

Please help!

Listbox Code:

For Each Plane As AIPlaneInfo In FSUIPCConnection.AITrafficServices.AllTraffic
Me.ListBox1.Items.Add(Plane.ATCIdentifier & " (" & Plane.State.ToString() & ") " & Plane.DepartureICAO & " -> " & Plane.DestinationICAO)
Label1.Text = "AI Radar (" & ListBox1.Items.Count & " total AI Flights)"
Next Plane

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.