CodeItBetter Programming Another VB Programming Blog

How to show the Drop Down of ComboBox List

Posted on January 5, 2009
1
2
3
4
5
6
7
8
9
10
11
12
13
'Controls - How to show the Drop Down of ComboBox List

Option Explicit
 
'Insert a ComboBox to your form

Public Declare Function SendMessageLong Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, _
    ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Public Const CB_SHOWDROPDOWN = &H14F
 
Private Sub Form_Load()
    Call SendMessageLong(Combo1.hwnd, CB_SHOWDROPDOWN, True, 0)
End Sub

Related posts:

  1. How to set the ComboBox DropDown List Width
  2. How to Show/Hide ComboBox’s DropDown List
  3. How to check for duplicates in Combo Box
  4. How to Copy List Box Content To Another List Box\Combo Box
  5. How to Quick Select/UnSelect all items in List Box
  6. How to add CheckBox to ComboBox
  7. How to set the ComboBox DropDown List Height
  8. How to generate list in combobox with all dates of current month
  9. How to expand the width of a combobox to the width of the listed items
  10. How to select entire Row in List View

Filed under: Controls Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.