If TextBox1.Text = ComboBox1.Items(i) Then If you want to textboxes copy the below code in the keydown events of all textboxes no need to use combobox1_keydown I this you can selected required item in the combobox or you can type the new text in that combobox and press enter then automatically that text will add into the combobox items If ComboBox1.Text = ComboBox1.Items(i) Then Private Sub ComboBox1_KeyDown(ByVal sender As System.Object, ByVal e As ) Handles ComboBox1.KeyDownįor i As Integer = 0 To - 1 If you want to add the data to the combobox without using textboxes then follow the below code Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.LoadĬomboBox1.AutoCompleteSource = AutoCompleteSource.ListItemsĬomboBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppendĬ("meter" + i.ToString + " location")
0 Comments
Leave a Reply. |