Winforms: How to prevent vertically resize in VB.NET
- by ajtp
Hi,
Working with winforms I wonder if there is some way to prevent vertically resize of the form. I would like to allow user to resize form in all directions except vertically.Moreover I would like to allow vertically resize in upward direction, but not downward.
I have tried to use maximumsize by setting it to: Me.maximumsize = new size(0,me.height)
I set width to 0 because I want to allow user to change form width.
Unfortunately it doesn't work.
Any ideas?