anoying splitter behaviour

G

Guest

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?
 
M

Markus

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
 

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