Anyone knows how to change the height of a ComboBox ?

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
 
S

Stoitcho Goutsev \(100\) [C# MVP]

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.
 
H

Herfried K. Wagner [MVP]

* "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]>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top