Click here to Skip to main content
15,880,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello to all,

I have two comboboxes.

I want to fill numbers in combobox1 from 1 to 10.

Suppose in comboxbox1 1 have values 1,2,3,10,5,6,7 then I want to fill values in second combox box these are 4,8,9.

How can I do this in a VB.Net application.
Posted
Updated 1-Sep-10 21:55pm
v2
Comments
Dalek Dave 2-Sep-10 3:58am    
Edited for Grammar and Readability.

I THINK you're saying you want to find the missing numbers and put them in combo two. Create a list, of the numbers 1-10, then iterate over combo1 and remove any numbers you find. The list you have left is what you need.
 
Share this answer
 
This is the third such question on this subject I have read today, so it strikes me that this is the latest homework task for your course.

It is fine that you are learning, but we are not here to do your homework.

However, you may wish tho think about an array of values from 1 to 10 and as each one is assigned to CB1 it is flagged to a second array.

Hold that thought and think man, think!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900