Dear Sir,
I have created an combo box and added some items if i want to add an other items so how to add these items using textbox kindly do need full
Regards
Satish.S
Printable View
Dear Sir,
I have created an combo box and added some items if i want to add an other items so how to add these items using textbox kindly do need full
Regards
Satish.S
Hi,this way:
vb Code:
Private Sub Command1_Click() Combo1.AddItem Text1.Text End Sub
You can do it in the KeyDown event too.
Code:Option Explicit
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = (13) Then ' if Enter key is pressed.
Combo1.AddItem Text1.Text
End If
End Sub