How the limit the form size to a min and max you decide without any API calls and just with a few l
How the limit the form size to a min and max you decide without any API calls and just with a few line of code
Rate How the limit the form size to a min and max you decide without any API calls and just with a few l
(1(1 Vote))
'the size you would like
'you can rewrite the code with select case
'but I wrote it with if for simplicity.
Private Sub Form_Resize()
If Form1.WindowState = 1 Then
Else
If Form1.Height < 1600 Then
Form1.Height = 1600
End If
If Form1.Width < 5300 Then
Form1.Width = 5300
End If
Text1.Height = Me.Height - 1500
Text1.Width = Me.Width - 200
End If
End Sub
How the limit the form size to a min and max you decide without any API calls and just with a few l Comments
No comments yet — be the first to post one!
Post a Comment