|
|
Title | Make a form that can be maximized and minimized but not resized arbitrarily |
Description | This example shows how to make a form that can be maximized and minimized but not resized arbitrarily in Visual Basic 6. Set the form's BorderStyle to Fixed Single, and set MinButton and MaxButton to True. |
Keywords | resize, no resize, prevent resize |
Categories | Controls, Tips and Tricks |
|
|
Thanks to Daniel Stroud.
Set the form's BorderStyle to 1 - Fixed Single. Set the form's MinButton and MaxButton properties to True.
The form can now be minimised and maximised, but not resized manually. You still have the option to change the size in code, but the user cannot.
|
|
|
|
|
|