Results 1 to 3 of 3

Thread: Combo box auto drop down

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2000
    Location
    Ireland
    Posts
    99

    Combo box auto drop down

    Hi Folks
    I want to get a combo box to drop down, displaying its list when I make a selection from another combo box.
    Anyone know how?

    Cheers
    ML

  2. #2
    Tygur
    Guest
    Put this in the General Declarations area of the form: (The area above the rest of the code)
    Code:
    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
    Private Const CB_SHOWDROPDOWN = &H14F
    And put this into the Click event of the ComboBox you want to make the selection from:
    SendMessage Combo2.hwnd, CB_SHOWDROPDOWN, 1, 0&

    ..And change Combo2 to the name of the combobox you want the list to drop down for.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Nov 2000
    Location
    Ireland
    Posts
    99
    Thanks for helping me again Tygur

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width