Wrox Programmer Forums
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
Old June 13th, 2003, 08:33 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default Modal Form Sizing Woes

I have a form where the MODAL and POP-UP properties are set to YES. The form's BORDER STYLE property is also set to DIALOG. Here's the annoying part...

When I first create and size the form, everything works great. However, if I later resize the form to make room for other form elements, when the form opens it insists on reverting back to its original (smaller) size.

Attemps to correct this have included:
  • setting the form's AUTO RESIZE property to NO.
  • setting the form's BORDER STYLE property to SIZABLE in design view, opening the form and then manually resizing the form in form view, then going back to design view and changing the BORDER STYLE back to DIALOG
  • setting the form's HEIGHT and WIDTH properties with code in the form's ON OPEN event
None of these have any effect. Eventually, the form will stay put, but only after countless resettings. Any ideas why it won't take the first time? :(

Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
Greg Serrano
Michigan Dept. of Environmental Quality
Air Quality Division
Old June 13th, 2003, 09:50 AM
Registered User
Join Date: Jun 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts

Set the modal to no, open the form, move it and resize it to your satisfaction, save it, then close it. No open it in design view, change to the modal property to yes. Close it. It should now open in the location and size you want.

John Ruff - The Eternal Optimist :-)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sizing Main/Sub Form Brendan Bartley Access 2 September 11th, 2006 07:50 AM
Sizing a form to fit different screen settings osemollie Pro VB 6 0 August 17th, 2006 11:09 AM
Show a modal form in .Net WebForm jkusmanto VB.NET 2002/2003 Basics 1 July 10th, 2006 03:52 PM
Form woes komputatek Access 2 March 15th, 2005 11:47 AM
sizing a form gisvb Dreamweaver (all versions) 2 December 29th, 2003 02:54 PM

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