Jump to content
The simFlight Network Forums
Sign in to follow this  
jason121

[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:


Me.ListBox1.Items.Clear()
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
[/CODE]

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • 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.