all groups > dotnet windows forms > february 2005 >
You're in the

dotnet windows forms

group:

ListBox resize problem


ListBox resize problem Marcin J.
2/12/2005 5:07:24 PM
dotnet windows forms:
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

Re: ListBox resize problem Herfried K. Wagner [MVP]
2/12/2005 5:47:26 PM
Marcin,

"Marcin J." <luskan@aster.pl> schrieb:
[quoted text, click to view]

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 S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Re: ListBox resize problem Marcin J.
2/12/2005 7:30:42 PM
[quoted text, click to view]

thanks, that fixed it.

AddThis Social Bookmark Button