Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 12th, 2008, 05:31 AM
Authorized User
 
Join Date: May 2007
Location: , , .
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default form positioning

Hi all,

Is there anyway to set the absolute position of a form on the screen so that it opens in the same place. Auto centre doesn't seem to work and its becoming annoying. I have numerous different sized forms and would like each to open at a set point depending on the size of it.

At the moment the forms are opening seemingly whereever they feel like it, regardless of where i closed them up in design view or moved them once i re-enabled movable.

If looked through all my library of books of vba and access and can't find anything there

Reply With Quote
  #2 (permalink)  
Old February 12th, 2008, 08:26 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

You want to use the Move property of the form. On the Form_Load event, try this code:

Me.Move Left:=1440, Top:=2880

The Move command uses twips, and there are 1440 twips per inch. So this line moves the top left corner of the form 1 inch left and 2 inches down from the inside corner of the Access window.

Did that help?

mmcdonal

Look it up at: http://wrox.books24x7.com
Reply With Quote
  #3 (permalink)  
Old February 12th, 2008, 08:52 AM
Authorized User
 
Join Date: May 2007
Location: , , .
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks i'll give it a go and post back if get any problems

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
positioning text + form element + firefox Adam H-W CSS Cascading Style Sheets 2 June 12th, 2007 03:18 AM
positioning issue Adam H-W CSS Cascading Style Sheets 3 January 20th, 2007 07:28 AM
Positioning Calculations rit01 ASP.NET 1.x and 2.0 Application Design 3 February 22nd, 2006 03:10 PM
MDI Child Form Positioning BSkelding VB.NET 2002/2003 Basics 1 December 11th, 2004 01:56 AM
cursor positioning alihussein3 Javascript How-To 1 October 22nd, 2003 03:52 AM



All times are GMT -4. The time now is 04:21 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.