HELP SOS

Posts 16 of 6 · Page 1 of 1
HELP SOS
is there a setting for your from so the user can never resize it becuz if they do then it scrues up the whole thing
Use the Form border style with a fixed style or you can set the
Form.MinimumSize and MaximumSize to the current size (maxsize properties = 1200 , Minsize properties = 1200 or whatever size)

Programatically


Code:
 
Private Sub Form_Resize()

    If Me.WindowState <> vbMinimized Then
    
        Me.Height = 1200 ' Height You want
        Me.Width = 1200 ' Width you want
    
    End If

End Sub

Private Sub Form_Resize()

    If Me.WindowState <> vbMaxamized Then
    
        Me.Height = 1200 ' Height You want
        Me.Width = 1200 ' Width you want
    
    End If

End Sub
me.formborderstyle=formborderstyle.fixed3d
me.maximizebox = false
me.minimizebox = false
Quote Originally Posted by Lolland View Post
me.formborderstyle=formborderstyle.fixed3d
The problem with that is it can still be minimized and maximized, Just can't be "resized", Min and Max still have to be disabled or the above
Quote Originally Posted by NextGen1 View Post
The problem with that is it can still be minimized and maximized, Just can't be "resized", Min and Max still have to be disabled or the above
Fixed.

That better?
Quote Originally Posted by Lolland View Post
Fixed.

That better?
That works
Posts 16 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?