ListBox resize problem

M

Marcin J.

Hi,

Iam new to windows forms so maybe this problem was discussed already (tho I
could not find anything on google).

I have added and docked to the left a ListBox, now when I resize Form, list
box resizes correctly in Width, but in Height it does not change its
position smoothly. I mean that bottom size changes its position like it was
computed modulo 10 - it looks like it snaps to grid points. I hope this is
informative description. Thanks for any help.

Martin
 
H

Herfried K. Wagner [MVP]

Marcin,

Marcin J. said:
I have added and docked to the left a ListBox, now when I resize Form,
list box resizes correctly in Width, but in Height it does not change its
position smoothly. I mean that bottom size changes its position like it
was computed modulo 10 - it looks like it snaps to grid points. I hope
this is informative description.

That's because the listbox's 'IntegralHeight' property is set to 'True' by
default. This ensures that only whole items and not parts of items are
visible. You can set 'IntegralHeight' to 'False' if you want smooth sizing.
 
M

Marcin J.

I have added and docked to the left a ListBox, now when I resize Form,
That's because the listbox's 'IntegralHeight' property is set to 'True' by
default. This ensures that only whole items and not parts of items are
visible. You can set 'IntegralHeight' to 'False' if you want smooth
sizing.

thanks, that fixed it.
 

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