?
Solved

How do I change the hieght of a combo box or datepicker without changint the font/size

Posted on 2006-04-18
3
Medium Priority
?
336 Views
Last Modified: 2013-12-03
In VB.net I cannot change the hieght of a combo box or datepicker without changing the font/size.  Is there a workaround ?
0
Comment
Question by:bczingo
  • 2
3 Comments
 
LVL 6

Expert Comment

by:ctm5
ID: 16479481
Hi,
A combo box by definition is only one "item" high. It's designed to save you screen real estate. If you click on the arrow, its height will increase to accommodate the MaxDropDownItems you indicate in the Properties. If you change the DropDownStyle to simple, then you adjust the height. If you are talking about changing the height of the one item that appears by default, then you are correct: its height is tied to the font size. Another example of Microsoft trying to do our thinking.

The DateTimePicker is also tied to the font size.

Of course, all of this can be subverted by deriving your own combo box or date time thingy from the ones Microsoft provides. There is lots of info here and elsewhere on how to do that.

ctm5
0
 
LVL 3

Author Comment

by:bczingo
ID: 16479766
Great,
Where might I find this info on deriving my own combo box?
0
 
LVL 6

Accepted Solution

by:
ctm5 earned 1000 total points
ID: 16480505
Do a search here. Or try  codeproject.com. Lots of info.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question