DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Rick Guest

    Extend the width of a drop down combo box when clicked


    Can anyone point me to some source code that will extend the width of a drop
    down combo box when clicked to view items in the list that are wider the
    the combo box.


    Thanks......Rick

  2. #2
    Michael \(michka\) Kaplan Guest

    Re: Extend the width of a drop down combo box when clicked

    Well, its kind of a pain, but you can:

    1) set the form font to match the control font
    2) Use the Form.TextWidth method for every single item in the list to get
    the width
    3) Change the width to be bigger than the largest value

    --
    MichKa
    "Cause it's a bittersweet symphony, thats life..." -- The Verve

    random junk of dubious value, at the multilingual,
    no scripts required, http://www.trigeminal.com/

    "Rick" <richardjr.rackley@excite.com> wrote in message
    news:3946e043$1@news.devx.com...
    >
    > Can anyone point me to some source code that will extend the width of a

    drop
    > down combo box when clicked to view items in the list that are wider the
    > the combo box.
    >
    >
    > Thanks......Rick




  3. #3
    Michael \(michka\) Kaplan Guest

    Re: Extend the width of a drop down combo box when clicked

    Well, its kind of a pain, but you can:

    1) set the form font to match the control font
    2) Use the Form.TextWidth method for every single item in the list to get
    the width
    3) Change the width to be bigger than the largest value

    --
    MichKa
    "Cause it's a bittersweet symphony, thats life..." -- The Verve

    random junk of dubious value, at the multilingual,
    no scripts required, http://www.trigeminal.com/

    "Rick" <richardjr.rackley@excite.com> wrote in message
    news:3946e043$1@news.devx.com...
    >
    > Can anyone point me to some source code that will extend the width of a

    drop
    > down combo box when clicked to view items in the list that are wider the
    > the combo box.
    >
    >
    > Thanks......Rick




  4. #4
    Karl E. Peterson Guest

    Re: Extend the width of a drop down combo box when clicked

    Hi Rick --

    > Can anyone point me to some source code that will extend the width of a drop
    > down combo box when clicked to view items in the list that are wider the
    > the combo box.


    If widening the entire combo (as michka suggests) isn't an option, see FullDrop.zip
    on my site for an approach that ought to work. This sample shows how to modify the
    height of the dropdown -- should be a minor tweak to do the width instead.

    Later... Karl
    --
    http://www.mvps.org/vb





  5. #5
    Karl E. Peterson Guest

    Re: Extend the width of a drop down combo box when clicked

    Hi Rick --

    > Can anyone point me to some source code that will extend the width of a drop
    > down combo box when clicked to view items in the list that are wider the
    > the combo box.


    If widening the entire combo (as michka suggests) isn't an option, see FullDrop.zip
    on my site for an approach that ought to work. This sample shows how to modify the
    height of the dropdown -- should be a minor tweak to do the width instead.

    Later... Karl
    --
    http://www.mvps.org/vb





Bookmarks

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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links