How do I prevent a form from being resized by the user while reserving the options to have it resized via a sub procedure? As in
Me.Width = 448
Me.Height = 256
I tried setting in the designer maximumsize as 448,256 and minimumsize as 448,256, but I dont see how it is possible to specify the maximum/minimum sizes in a sub procedure rather than the designer. Specifying it in the designer is no use because my program will need to be resized in runtime, so the maximum and minimum sizes will need to vary to match the program's current size.
I need to SET the size, not GET it, and vb wont let me do it using
Me.MaximumSize() for example won't help.
Or just tell me another way to stop form resizing by the user.
Me.Width = 448
Me.Height = 256
I tried setting in the designer maximumsize as 448,256 and minimumsize as 448,256, but I dont see how it is possible to specify the maximum/minimum sizes in a sub procedure rather than the designer. Specifying it in the designer is no use because my program will need to be resized in runtime, so the maximum and minimum sizes will need to vary to match the program's current size.
I need to SET the size, not GET it, and vb wont let me do it using
Me.MaximumSize() for example won't help.
Or just tell me another way to stop form resizing by the user.