Results 1 to 6 of 6

Thread: Horizontal bar in ComboBox???

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    Springfield
    Posts
    120

    Red face Horizontal bar in ComboBox???

    I found some very nice code from VB world which will allow me to create a combobox which can expand to the maxium length of my list. However, to me that is not good enough. Is there a way that I can put Horizontal bar in the Combobox's drop down list? Thanks very much.
    MM

  2. #2
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    You could extend with width of the dropdown instead

    http://www.vb-world.net/tips/tip116.html

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    Springfield
    Posts
    120
    Thanks very much, actually I saw those code before. But the problem I have is because my text in Combobox is too long, it will reach out of screen. That why I think about scrollbar.
    MM

  4. #4
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    As combos and listboxs are very similar, you could try this
    http://www.mvps.org/vbnet/index.html...lextentadv.htm

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    Springfield
    Posts
    120
    That is whay I thought too. But the code only work for Listbox not combobox. I don't know why. Thanks very much
    MM

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    Springfield
    Posts
    120
    I think I may catch the hwnd for the drop down of Combo box. Then I may be able to sendmessage with scrollbar to it. But I don't know how to catch the hwnd of the drop down list of the combo box. Please help
    MM

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