Wrox Programmer Forums
| 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
  #1 (permalink)  
Old July 28th, 2006, 05:55 PM
Authorized User
Join Date: Jun 2006
Location: , , .
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default autocenter controls on form


I have a rather simplistic problem that I can't find a solution to! I have a form that I want to maximize every time it opens (which I have achieved through DoCmd.Maximize in the Form_Load event), but I also want that all the controls in the form, staying positioned relative to each other, center themselves horizontally on the form once it is resized. Maybe I can set a property that always makes them stay in the horizontal center, which is also great. How could I accomplish this?

Thank you!

  #2 (permalink)  
Old July 31st, 2006, 12:24 AM
Authorized User
Join Date: May 2006
Location: , , India.
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Ashfaque

Once you place the controls over to the form object, it simply can't moved unless you are in design mode of the form.

If your aim is just to set all the controls in a specific distance (positioned as you described) from each other OR adjust themselves on the form, then you have way to set the screen resolution / form resizing using modules / tricks that are available in samples dbs on some of the sites like http://www.jamiessoftware.tk/resizef..._download.html

Hope this helps


Similar Threads
Thread Thread Starter Forum Replies Last Post
autocenter controls on form kritimehrotra Access VBA 0 July 28th, 2006 05:56 PM
Search Controls on a Form donnie_darko1983 ASP.NET 1.0 and 1.1 Basics 2 April 12th, 2005 05:20 AM
listing controls of form melvik C# 1 April 22nd, 2004 06:00 AM
Controls on another form bjackman Access VBA 2 March 25th, 2004 01:30 AM

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