| You are here: DEVPPL ‹ Forum ‹ Programming ‹ Visual Basic Forum |
NOTIFICATIONS
|
|
|||||||||||||||
Login |
Multiple Combobox in VB 6.0
2 posts
• Page 1 of 1
0
Multiple Combobox in VB 6.0
I want to make multiple combobox associated with each other. For example,
I have two combobox called country and city
First, there are countries in the first combobox and there is no city in the second combobox
When I select USA in the first combobox. There will be cities of USA in the second combobox.
When I select Canada, Cities of USA will disappear and cities of Canada will appear in the second combobox.
I need this, I request you to help me.
Thank you...
I have two combobox called country and city
First, there are countries in the first combobox and there is no city in the second combobox
When I select USA in the first combobox. There will be cities of USA in the second combobox.
When I select Canada, Cities of USA will disappear and cities of Canada will appear in the second combobox.
I need this, I request you to help me.
Thank you...
- Merkez
- Reputation: 0
- Posts: 1
- Joined: Sat Oct 29, 2011 2:24 pm
- Highscores: 0
- Arcade winning challenges: 0
0
Re: Multiple Combobox in VB 6.0
You would probably have to store the countries and their corresponding cities somewhere inside the program or in an external file. Then, when the ComboBox1 text is changed (there is an event for that), all you need to do is load the names of the cities into ComboBox2. There is a method for doing that.
- Sanjon
- Reputation: 0
- Posts: 40
- Joined: Sun Dec 05, 2010 7:20 pm
- Highscores: 0
- Arcade winning challenges: 0
|
|