views:

52

answers:

3

I have a ComboBox a on form, and its' default height is 21 - how do i change it?

A: 

In code, a.Height should work. In the designer, go into the properties and look in Size->Height.

Alternatively, you can change the Font Size and the combo box will grow bigger to accomodate it, but I don't think that's what you want.

Duracell
I tried That, but it does't have any effect :-(
Gaddigesh
A: 

Set the DrawMode to OwnerDrawVariable. However customization of the ComboBox leads to other issues. See this link for a tutorial on how to do this completely:

http://www.csharphelp.com/2006/09/listbox-control-in-c/

code4life
+1  A: 

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.

Hans Passant