VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Populate combo box with one line of code

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

Rate 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




Download this snippet    Add to My Saved Code

Populate combo box with one line of code Comments

No comments have been posted about Populate combo box with one line of code. Why not be the first to post a comment about Populate combo box with one line of code.

Post your comment

Subject:
Message:
0/1000 characters