receive value in combobox

Asked By kshama parashar
02-Sep-10 03:16 AM
Earn up to 0 extra points for answering this tough question.
hello to all
i have tow combobox i want to fill number  in combobox from 1 to 10
suppoes in first combox box i have values 1,2,3,10,5,6,7
now i want to fill values in second combox box these are 4,8,9
 in vb.net window application

  re: receive value in combobox

Sagar P replied to kshama parashar
02-Sep-10 03:50 AM
You can use this for same;

You can use FindString method of combo box like;

For i As Integer = 1 To 10

  If ComboBox1.FindString(i.ToString()) = -1 Then

    ComboBox2.Items.Add(i)

  End If

Next

  re: receive value in combobox

kshama parashar replied to Sagar P
02-Sep-10 04:35 AM
thanks its working

  re: receive value in combobox

kshama parashar replied to Sagar P
02-Sep-10 04:35 AM
thanks its working
Create New Account