View Single Post
Join Date: Aug 2008
Posts: 710
Reputation: Teme64 will become famous soon enough Teme64 will become famous soon enough 
Solved Threads: 115
Teme64's Avatar
Teme64 Teme64 is offline Offline
Master Poster

Re: can someone help me with saving my data in a file program?

 
0
  #2
Dec 2nd, 2008
You didn't mention, how the information is stored. But if you have numbers in your combo box and you can fetch the information with that number, you need to trap SelectedIndexChanged for the combo box:
  1. Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
  2. ' Get selected VIN number
  3. Dim ThisVINNumber As Integer
  4.  
  5. Try
  6. ThisVINNumber = CInt(ComboBox1.Items(ComboBox1.SelectedIndex))
  7. ' Fetch information for this VIN and place it in the labels
  8. Catch ex As Exception
  9. ' Handle exception
  10. End Try
  11.  
  12. End Sub
Hope this gets you started. If you still have a problem, you need to tell more details about how you store your information (database, a file...)
Reply With Quote