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 / May 2006

Tip: Looking for answers? Try searching our database.

anoying splitter behaviour

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
eduwushu - 26 May 2006 10:46 GMT
Hi
I have put an splitter container in my form and have set its orientation
property to horizontal
The in the upper panel i have put a listbox wit dock property to fill .
The problem is that when i move the splitter up and down the distance
between the lower border of the listbox and the splitter vary . How can i
avoid this?? where is the problem?
Markus - 26 May 2006 11:40 GMT
> The in the upper panel i have put a listbox wit dock property to fill
>  . The problem is that when i move the splitter up and down the
> distance between the lower border of the listbox and the splitter
> vary . How can i avoid this?? where is the problem?

A listbox displays per default only completely visible items (not half
items at the bottom). So the height of the list box changes in steps of
an items height.

To solve your problem use:
ListBox.IntegralHeight = false;

From the .NET Framework Docs:
Gets or sets a value indicating whether the control should resize to
avoid showing partial items.

hth
Markus

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.