Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2005

Tip: Looking for answers? Try searching our database.

ListBox resize problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marcin J. - 12 Feb 2005 16:07 GMT
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
Herfried K. Wagner [MVP] - 12 Feb 2005 16:47 GMT
Marcin,

"Marcin J." <luskan@aster.pl> schrieb:
> 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.

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>

Marcin J. - 12 Feb 2005 18:30 GMT
>> 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
[quoted text clipped - 6 lines]
> visible.  You can set 'IntegralHeight' to 'False' if you want smooth
> sizing.

thanks, that fixed it.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.