in my form i have written the code for combobox as follows
Private Sub ComboBox1_DropDown(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComboBox1.DropDown
ComboBox1.DisplayMember = "shortform"
ds1.Clear()
da1.Fill(ds1, "p")
ComboBox1.DataSource = ds1.Tables("p")
End Sub
my query is when i am selecting the combobox for the first time ,say if i have 4 items ,the items are bieng displayed
but when i am selecting the combobox for the second time then the items are displyed twice and so on
so i want to display the items as it is without repitition even though i click any number of times
hope my question is clear
any suggestions
thanks
Private Sub ComboBox1_DropDown(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComboBox1.DropDown
ComboBox1.DisplayMember = "shortform"
ds1.Clear()
da1.Fill(ds1, "p")
ComboBox1.DataSource = ds1.Tables("p")
End Sub
my query is when i am selecting the combobox for the first time ,say if i have 4 items ,the items are bieng displayed
but when i am selecting the combobox for the second time then the items are displyed twice and so on
so i want to display the items as it is without repitition even though i click any number of times
hope my question is clear
any suggestions
thanks