Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form maximum and minimum size

Status
Not open for further replies.

Bluejay07

Programmer
Mar 9, 2007
780
CA
Hello,

I've searched around but haven't located a solution yet.

Is it possible (if so, how) to set a form's maximum and minimum width and height at runtime? The minimum and maximum might be the same.

I require the form to be bigger at design time but a set size at runtime.

Any help will be greatly appreicated.

Thanks.

 
Code:
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.MaximumSize = New Size(200, 200)
    End Sub
 
Thanks RiverGuy.

I will try that when I can get back to that project.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top