Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-01-2008, 09:46 PM
Junior Member
 
Join Date: Oct 2007
Posts: 4
iTrader: (0)
Ginger is on a distinguished road
Default Form placement in application window

I've completed my app but I don't like where some of the forms are appearing when they open. Can any one explain me how to tell Access where I want them placed in the window.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-04-2008, 10:27 AM
Member
 
Join Date: Oct 2007
Posts: 41
iTrader: (0)
TonyES is on a distinguished road
Default

If you set the Auto Center property of a form to Yes, it will be centered (more or less) within the Access application window when it opens.
If you set the Auto Center property to No, the form will be opened where it was (more or less) when you last saved it.
If you want to open the form at a specific position, you can put code in the OIn Open event of the form:

Private Sub Form_Open(Cancel As Integer)
Me.Move Left:=1440, Top:=2880
End Sub

In this example, the form is positioned (more or less) 1 inch from the left edge and 2 inches from the top of the content area of the Access window. The coordinates are given in twips, where 1440 twips = 1 inch.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 02:54 AM.