Extend the width of a drop down combo box when clicked


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

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

  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





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


   Development Centers

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