Is there a build procedure in C# for making a combobox or list box that has names of all countries and when a country is selected another combobox is filled with the cities of that country?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sure there is a procedure. You could start with a simple data structure:
Then, instantiate this structure, e.g. into a property of your form…
In your form, instantiate two Binding Sources (BS):
Now you need two dropdowns:
and you should be pretty much done.