Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing combobox selection to another form

Status
Not open for further replies.

paulcy82

Programmer
Jan 25, 2005
28
0
0
US
i have several forms in my project. On the first form, called form1, I want the user to choose a car using a combobox called cbAuto. I then need to pass the selected car to another form, called fNewAuto. I have tried the following:
Dim f1 As New Form1
Dim car As String
car = f1.cbAuto.SelectedItem
but, car is equal to nothing. How can I carry over what the user selected in the first forms combobox?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top