by Mohamed Safique Murtuza (1 Submission)
Category: Miscellaneous
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Fri 18th August 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Populate combo box with one line of code
'to add a list to the combo box
Private Sub Form_Load()
Combo1.AddItem "Apple"
Combo1.AddItem "Banana"
Combo1.AddItem "Grapes"
End Sub
'populate combobox
Private Sub Combo1_GotFocus()
SendKeys "{F4}"
End Sub