ListBox Docking Weirdness

Shane2100AD

New member
Joined
Oct 22, 2012
Messages
1
Programming Experience
1-3
I have an application which you choose what you want to do in a series of listboxes. I have the list boxes docked, however, the bottom of the list box isn't quite at the bottom of the form. I have a screen shot attached to visualize the problem.

Or, is this normal behavior?

Thanks,
Shane.
 

Attachments

  • vb.net weird.PNG
    vb.net weird.PNG
    48.9 KB · Views: 19
The default behaviour for the ListBox control is to maintain its Height as a multiple of the height of an item. If you want the Height to change smoothly rather then in steps then you have to set the IntegralHeight property to False.
 
Back
Top