by Ahmed Hassan (2 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Wed 31st March 1999
Date Added: Mon 8th February 2021
Rating:
(1 Votes)
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
'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
No comments have been posted about How the limit the form size to a min and max you decide without any API calls and just with a few l. Why not be the first to post a comment about How the limit the form size to a min and max you decide without any API calls and just with a few l.