-
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
-
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
-
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
-
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
-
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
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|