Anyone knows how to change the height of a ComboBox ?

  • Thread starter Thread starter Trever
  • Start date Start date
T

Trever

Hi all,

I have modified a .NET (C#) ComboBox to display images along with text so I
need to set the combo box height to values larger than default in order to
show an image bigger than 16 pixel high.

Changing the control height property is irrelevant. The only way I found to
increase the height of the combo is to change the font size but that doesn't
help me much because I need regular font size to display the items.

Is there any other way to set the height??

Thanks,

\T
 
Hi Trever,

If you show pictures along with the text I assume that you going to use
owner draw combobox. When you set DrawMode to one of the ownerdraw modes
then you can change ItemHeight porperty to what ever you want. If the
combobox is not owner draw there is no way to change its height unless you
don't chnage the font size or use PInvoke.
 
* "Trever said:
I have modified a .NET (C#) ComboBox to display images along with text so I
need to set the combo box height to values larger than default in order to
show an image bigger than 16 pixel high.

Changing the control height property is irrelevant. The only way I found to
increase the height of the combo is to change the font size but that doesn't
help me much because I need regular font size to display the items.

<URL:http://groups.google.de/[email protected]>
 
Back
Top