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

Vis FoxPro forms 2

Status
Not open for further replies.

Phil Thoms

Programmer
Oct 31, 2005
245
GB
Is it possible to stop users maximising a form input screen.
I have looked in properties but cannot find anything appropriate. Thanks
 
To set the existence (or absence) of the MAX Button on a form the property is: ThisForm.MaxButton

The MIN Button is similar: ThisForm.MinButton

The values are .T. or .F. depending on what you want, but the default is .T.

Good Luck,
JRB-Bldr
 
In addition to JRB-Bldr's good advice, I'd also suggest setting the form's BorderStyle to 2. That will prevent the user from manually resizing the form.

In general, I prefer to prevent a data-entry form being resized or maximised, as it mucks up my carefully-arranged controls. There are exceptions - for example, if the main conrol on the form is a grid, or an edit box, or something else that might itself be usefully resized, but for a typical data-entry form, that doesn't apply.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
There is a free Stretchy Resize Control that I use when I DO allow people to resize a Form and not muck up my carefully-arranged controls

It isn't perfect, but it works reasonably well and it is EASY to implement.

You can find the Stretchy Resize Control at:

Good Luck,
JRB-Bldr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top