You are here: DEVPPL Forum Programming Visual Basic Forum
NOTIFICATIONS
54.123
MEMBERS
15.697
TOPICS
62.285
POSTS
  562
FLASH GAMES
7.740
TUTORIALS
 

Login

E-mail:
Password:

Multiple Combobox in VB 6.0

0

Loading

Multiple Combobox in VB 6.0

Postby Merkez » Sat Oct 29, 2011 2:29 pm

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...
Merkez
 
Reputation: 0
Posts: 1
Joined: Sat Oct 29, 2011 2:24 pm
Highscores: 0
Arcade winning challenges: 0

Multiple Combobox in VB 6.0 - Sponsored results

Sponsored results

Login to get rid of ads

 

0

Loading

Re: Multiple Combobox in VB 6.0

Postby Sanjon » Sat Oct 29, 2011 7:19 pm

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
cron
^ Back to Top