Question Locked

.NET Minimum windows form height!!!

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Does anyone know of any issues regarding the minimum height of a windows form in VB.NET?
I have a custom control which creates a new form with no borders on which is a single label. I programmatically set the location and size of the form. When I set the height of the form to anything under 34, and then show it, the height gets re-set to 34. Anything over 34 sticks but not when you go under this size. The form is set to have no padding, the 'StartPosition' is 'Manual', 'AutoScroll' is 'False'. Can't think of anything else that may affect it.

6 replies

by soundbomber

Thanks for the reply but none of these suggestions seem to make a difference.

by tony hopkinson

Add an on resize event to the form.

Just put some gash code in there, like setting the text of this label.
and put a debug on it.

Then each time time it stops check the call stack to see where the resize came from.

This discussion is closed to new replies.