views:

459

answers:

2

Hello,

I've been having some difficulties with setting height of listbox.

Code like this...

listbox1.Height = some_number;

... works only for some numbers. It seems that height of listbox may be only multiplication of height of its element. Is there a way how to "override" this behaviour?

Thank you for help!

+12  A: 

Try,

listbox1.IntegralHeight=false;
listbox1.Height=some_int_number;
adatapost
+6  A: 

First, set

listbox1.IntegralHeight = false;
Henk Holterman