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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I make the form's size unchangeable

Status
Not open for further replies.

billyng

Programmer
Dec 7, 2004
25
0
0
US
Hi folks,

Would anybody please tell me how to make the form's size unchnageable?

Thanks!
 
Change the form's border style to 0, 1, or 2. 2 is probably what you want though. If you want to prevent the user from Maximizing the form you'll want to set the form's Maxbutton to .F. as well. If you want to a form to only be resizeable up to or down to certain dimensions then check out the form's maxwidth, maxheight, minwidth, and minheight properties.

boyd.gif

 
As well as setting the border style, I also set the max/min height and width to the same value as the forms actual height and width. This stops people double clicking on the title bar and maximising the form.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top