DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3
  1. #1
    jspimentel Guest

    combobox with long list

    I got combo box and list box that contain long list. I managed to solve the
    list box using api
    but left out with the combo box. Is there any combo box that can scroll
    horizontally and look through the



  2. #2
    rwallace Guest

    Re: combobox with long list

    You might want to try using a standard or data-bound grid control(either the
    default or third-party) over the list... this would solve the problem you
    mentioned from what I understand of it, but will likely add to the resource
    load a bit.

  3. #3
    Tim Patrick Guest

    Re: combobox with long list

    The standard combo box does not include a feature to scroll horizontally in
    the drop-down portion of the control. However, you can adjust the width
    of the drop-down to display the widest item in the list. This is done by
    sending the CB_SETDROPPEDWIDTH message to the control with the SendMessage
    API call. You can determine the width of each item in the list using the
    form's TextWidth method. After you make some minor adjustments to this value,
    you can use this width to set the dropped width. If this is what you are
    looking for, send me an e-mail at tim@vbstyleguide.com and I will send you
    back a routine that does all of this when you pass it a combo control.
    Tim Patrick

Similar Threads

  1. AnimateWindow API
    By Tim Manos in forum VB Classic
    Replies: 4
    Last Post: 10-19-2001, 06:06 AM
  2. Replies: 2
    Last Post: 10-18-2000, 10:50 PM
  3. How do I detect an FTP timeout?
    By Julian Milano in forum VB Classic
    Replies: 2
    Last Post: 08-11-2000, 12:11 PM
  4. How do I detect an FTP timeout?
    By Julian Milano in forum VB Classic
    Replies: 0
    Last Post: 08-10-2000, 09:16 PM
  5. Trying to print a PDF File from VB
    By Kunal Sharma in forum VB Classic
    Replies: 2
    Last Post: 04-25-2000, 03:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.