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
2010-07-01 13:07:55
I tried That, but it does't have any effect :-(
Gaddigesh
2010-07-01 13:14:48
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:
code4life
2010-07-01 13:21:57
+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
2010-07-01 14:37:10