How do i list whatever was in the combox without clicking on the small arrow?
I want when the user lunches the program , the drop list to be already opened?
Help?
Printable View
How do i list whatever was in the combox without clicking on the small arrow?
I want when the user lunches the program , the drop list to be already opened?
Help?
if you want your combobx stay allways open, how about just using the listbox control?
if you don't want your combo box to always stay open here are two options:
1. Use the Win32 API to perform a mouse click on the combo box
2. Use SendKeys on the combo box.
Try the following:
VB Code:
Private Sub Form_Activate() Combo1.SetFocus SendKeys "%{DOWN}" End Sub Private Sub Command1_Click() MsgBox Combo1.List(Combo1.ListIndex) 'OR (whatever works for you better) MsgBox Combo1.Text End Sub