Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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
 
Old December 22nd, 2003, 10:27 AM
Authorized User
 
Join Date: Dec 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Form alignment

Does anyone know of a bit of code to align a form on open to the left and top of the screen?

Thanks, Chester
 
Old December 25th, 2003, 03:24 AM
Authorized User
 
Join Date: May 2003
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by cpopham
 Does anyone know of a bit of code to align a form on open to the left and top of the screen?

Thanks, Chester

You must use the screen object of the VB. It provides you the screen width and screen height, you can set the control or form top and left position.

Best Regards
Deepesh Jain

Deepesh Jain
VB,VBA & .NET Specialist
Wiley Support Team
 
Old December 29th, 2003, 09:50 AM
Authorized User
 
Join Date: Dec 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Okay thanks....

 
Old January 2nd, 2004, 07:21 PM
Authorized User
 
Join Date: Oct 2003
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use the "Move" method eg;
Forms.frmCountries.Move Left:78, Top:0, Width:0, Length:0
or
Forms(0).Move Left:0, Top:0 (extreme left & top)
To give you some reference, I have a 17" screen, my form grid is in inches Y=30 X=30...
...for me to place the form to the extreme right & top .Move Left:15500, Top:0






Similar Threads
Thread Thread Starter Forum Replies Last Post
Alignment of ContentPlaceHolder garak0410 ASP.NET 2.0 Basics 2 June 7th, 2006 12:06 PM
alignment craziness liquidmillsap HTML Code Clinic 0 June 20th, 2005 12:09 PM
alignment p_gauri7 Crystal Reports 0 May 9th, 2005 01:16 PM
Content Alignment Santhi XSLT 3 January 11th, 2005 09:01 AM
Alignment between two tables tgopal Javascript 1 October 10th, 2003 04:47 AM





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