In VB 6 I used to just set a property to false in order
to prevent the resizing of forms, does anyone know how to
do this in VB.Net?
Thanks in advance,
Jeff
Jim - 12 Nov 2003 15:40 GMT
Jeff,
I think you can just place bounds on your form width and
height on the forms resize event to prevent the user from
resizing it.
Hope this helps!
Jim
>-----Original Message-----
>In VB 6 I used to just set a property to false in order
[quoted text clipped - 5 lines]
>Jeff
>.
Jim \(again\) - 12 Nov 2003 15:46 GMT
Woops Jeff, I found a better way and a MUCH simpler way.
I didn't see this before, but simply set the formborder
property to either 1,3 or 4.
Jim
>-----Original Message-----
>In VB 6 I used to just set a property to false in order
[quoted text clipped - 5 lines]
>Jeff
>.
Jay B. Harlow [MVP - Outlook] - 12 Nov 2003 16:01 GMT
Jeff,
The easiest way is to set the Form.FormBorderStyle to Fixed3D, FixedDialog,
FixedSingle or FixedToolWindow depending on the effect & style of border you
want.
Alternatively you can set the Form.MinimumSize & Form.MaximumSize to the
size you want the form restricted to.
Form.MinimumSize & Form.MaximumSize are especially handy if you want to
allow some change but not a lot of change.
Hope this helps
Jay
> In VB 6 I used to just set a property to false in order
> to prevent the resizing of forms, does anyone know how to
[quoted text clipped - 3 lines]
>
> Jeff