By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,440 Members | 1,420 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,440 IT Pros & Developers. It's quick & easy.

Selecting combo box items

P: 12
Hello,

Scenario:

I have got two combo box in my program. As per the selection of an item in my first combo box, i need to populate list of items/item in the second combo box.

Can anyone guide me on how to go about this using BC++?

Comments on this from VC++ users are also welcome.

Thanks in advance,

Regards,
Pramod
Dec 22 '06 #1
Share this Question
Share on Google+
3 Replies


Banfa
Expert Mod 5K+
P: 8,916
When you make a selection in a combo box it should issue a WM_COMMAND message to it's parent window containing a CBN_SELCHANGE notification message or something similar. Handle this message on your first combo box to fill in the second one.
Dec 22 '06 #2

P: 12
When you make a selection in a combo box it should issue a WM_COMMAND message to it's parent window containing a CBN_SELCHANGE notification message or something similar. Handle this message on your first combo box to fill in the second one.
Hello,

Thanks for your feedback
Here i have quoted one example for better understanding,

Suppose if first combobox is list of countries and if each country has a unique country code, i will pass this country code as an input to my second combo. Here if a particular country code there are more items (say 10), i need to display all the 10 items for that country code in second combo box. Eg: like for country A - 10 items, country B - say 5 items etc.

Thanks in advance.

Regards,
Pramod
Dec 22 '06 #3

P: 12
Hello,

Thanks for your feedback
Here i have quoted one example for better understanding,

Suppose if first combobox is list of countries and if each country has a unique country code, i will pass this country code as an input to my second combo. Here if a particular country code there are more items (say 10), i need to display all the 10 items for that country code in second combo box. Eg: like for country A - 10 items, country B - say 5 items etc.

Thanks in advance.

Regards,
Pramod

Hello All,

Anyone has got any idea about the above posted scenario?
To add further to above lines,
Country is read from one database table. Based on the selection of country i need to display list of items/item in other combobox. These items are stored in other table of database.

Thank you in advance.

Rgds,
Pramod
Dec 26 '06 #4

Post your reply

Sign in to post your reply or Sign up for a free account.