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

Specify Form Location

Status
Not open for further replies.

BradW

IS-IT--Management
Joined
Nov 30, 2000
Messages
126
Location
US
I am developing a database and I want to have three forms open at startup but I also want to specify the placement on the screen for those forms. I want a control form in one location, a data entry form in another and a status form in a third. How can I specify where the forms are placed on screen and can I lock them down to this position?

Thanks in adavance for all help!
 
If you leave the AutoCenter property set to No, Access will try to place the form wherever you had it when you saved it in design view. (I say "try" because if you open the database in Access when the main window is smaller than it was when you saved the form, Access may have to reduce the form's size or move it to make it fit. If you always open with Access maximized, this won't be a problem.)

One way to "lock" the form's position is to set its Border Style property to "None". This prevents it from having a title bar which can be used to drag it around. You should put a Rectangle control on it to give it the appearance of a border, and you should include a Close command button if you want the user to be able to close it.

In general, though, I discourage taking control away from the user this way. You can position the forms where you think they're most convenient for the user (as described in the first paragraph above), but you probably won't make every user happy that way, unless you're the only user.

Rick Sprague
Want the best answers? See faq181-2886
To write a program from scratch, first create the universe. - Paraphrased from Albert Einstein
 
Not exactly sure why you want to have 3 forms open at once and laid out as you indicate (I am not saying that is wrong). Instead, you might wnat to use a tabbed form. In addition, you may want to have a Switchboard form open first with a navigation button to open the tabbed form.

An investment in knowledge always pays the best dividends.
by Benjamin Franklin
Autonumber Description - FAQ702-5106
 
Look at the MoveSize Action. You can control a form's size and placement.
 
Thanks to all of you for the suggestions, They were all helpful....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top