Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
I find the height of combox and single line textbox can't be modified ,Unless change the size of
font.but I hope the size of font could be small so as to show all of content.
Posted
Comments
Sergey Alexandrovich Kryukov 15-Dec-15 22:03pm    
In what kind of UI? Simply put, if it's about ComboBox, which one, exactly? Full type name, please.
And what's the problem? Make it of any height you prefer, why not?
—SA
BillWoodruff 15-Dec-15 22:50pm    
If you are talking about the WinForms ComboBox, it is hard-wired to show all the content. Setting the CombobBox.DropDownHeight will have no effect at run-time.

Please clarify your question to describe clearly what you see now and how that is not what you want to see.
BillWoodruff 15-Dec-15 23:42pm    
The WinForms ComboBox does not inherit from TextBoxBase and provides no access to whatever it uses internally for the DropDown UI. It exposes no internal Controls.
Suvendu Shekhar Giri 16-Dec-15 0:03am    
But I thought OP has also mentioned about Textbox too. Sorry if I misunderstood.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900