CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 1999
    Location
    India-Delhi
    Posts
    106

    Combo / List Box

    Dear All,
    I stored some data in Combo / List box. I wish to filter the item as user type something in a combo. The problem is combo does not automatically all available items in the combo window. I have to press Alt+ down Arrow Key to show. In case of Combo please tell me how to automatically show items in combo window.
    In case of list box, How do I connect a text box to list box to filter the contents fo list box.

    Santulan


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Combo / List Box

    to show the dropdown list of a combobox you case use the following code:
    Call SendMessage(Combo1.hwnd, CB_SHOWDROPDOWN, True, 0)

    ...and declarations

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



  3. #3
    Join Date
    May 1999
    Location
    israel
    Posts
    52

    Re: Combo / List Box

    Hello ,
    How can I use the "SendKeys" function for example in order to activate certain controls on my form, during run-time.Is it even possible to do with "SendKeys" or do I have to bring in API funcs'..?
    Thank-you!!


    LED

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

Featured