点击按钮控制下拉框下拉

Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Const CB_SHOWDROPDOWN = &H14F

Private Sub Command1_Click()
    'Text1.Text = "hello,world!"
    'Shell "D:\flashfxp506\FlashFXP.exe"
    SendMessage Combo1.hwnd, CB_SHOWDROPDOWN, True, 0
End Sub

你可能感兴趣的:(点击按钮控制下拉框下拉)