Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set the height of a ComboBox?

I have a ComboBox on a form, and its default height is 21. How do I change it?

like image 723
Gaddigesh Avatar asked Jul 01 '10 12:07

Gaddigesh


People also ask

How do I change the height of my ComboBox?

Step 2: Drag the ComboBox control from the ToolBox and drop it on the windows form. You are allowed to place a ComboBox control anywhere on the windows form according to your need. Step 3: After drag and drop you will go to the properties of the ComboBox control to set the size of the ComboBox.

How do I set ComboBox items?

To add items to a ComboBox, select the ComboBox control and go to the properties window for the properties of this control. Click the ellipses (...) button next to the Items property. This opens the String Collection Editor dialog box, where you can enter the values one at a line.

What is ComboBox control in C#?

ComboBox Control C# controls are located in the Toolbox of the development environment. You can use them to create objects on a form with a simple series of mouse clicks and dragging motions. A ComboBox displays a Textbox combined with Listbox, which enables the user to select items from the list or enter a new value.


1 Answers

ComboBox auto-sizes to fit the font. Turning that off is not an option. If you want it bigger then give it a bigger font.

like image 156
Hans Passant Avatar answered Sep 21 '22 20:09

Hans Passant