ListBox resize problem

  • Thread starter Thread starter Marcin J.
  • Start date Start date
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
 
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.
 
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.
 
Back
Top