473,394 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to keep form sizing when startup form is maximized

I want my startup form to be maximized when I open the database but then I want the forms and reports that I open to not be maximized. How do I keep the main form maximized and customize my other forms and reports to open not maximized?
Mar 9 '11 #1
2 2247
colintis
255 100+
In your startup form, open design view and open it properties.

Click the "Event" tab, click on the "On Load" text field, and click the "..." button appeared on the right, and select "Macro Builder"

After the macro window pops up, on the action column click the down arrow button, find and select Maximize. Then save and close.
Mar 10 '11 #2
NeoPa
32,556 Expert Mod 16PB
First of all, Access (as with all Office Apps) has a common setting for windows being maximised. If one window is maximised then all windows are. That means you cannot have the startup window maximised at the same time as having other windows restored.

You can change the state dependin on which window has the focus though. There are various events you could use to handle this, but Private Sub Form_GotFocus() may be your best bet.

For your main form :
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_GotFocus()
  2.     Call DoCmd.Maximize
  3. End Sub
For all other forms :
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_GotFocus()
  2.     Call DoCmd.Restore
  3. End Sub
Mar 11 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: John Michael | last post by:
I have created some password routines to protect certain forms from access without a password. This allows me to create some security for apps that will be used on diff machines for users that...
10
by: PC Datasheet | last post by:
How can I programatically set the startup form when the database opens? Thanks! Steve
8
by: Brian Fulford | last post by:
This is my first shot at a Winforms application in dot net. This application is mainly going to run unattended but is using a form to display current activity of the background processing. In VB6,...
4
by: Chris Ashley | last post by:
I have a class called App set as the startup object with the following code: Friend Class App Shared Sub Main() Dim FrmMain As New MainForm Application.Run(FrmMain) End Sub End Class In...
3
by: Don | last post by:
If you have a form that calls another form via the following code: Dim myForm as Form2 myForm = New Form2 myForm.Owner = Me MyForm.ShowDialog and you minimize the second form, the first form...
4
by: Johnnie Miami | last post by:
I'm using VB.Net 2005 beta 2 and have my login form (login.vb) specified as the startup form. If the user is successful logging in, I call my main form (main.vb). This all works fine but the...
4
by: kaosyeti | last post by:
what's the best way to get a form to always open at a specific size. i've sized and saved the forms, changed the borders and had popup on and off all over but can't seem to get it to stay one way...
10
by: Bernie Hunt | last post by:
This is probably a silly question, but I've gotten myself confused. My app has two forms, form1 and form2. form1 is the start up object in the propers. An event in form1 instantiates form2. ...
1
by: PW | last post by:
Hi, Is it possible to make a control bigger or maximize it also when the user maximizes the form? I have a calendar control on a form and I would like to automatically make it bigger when the...
3
by: stephen04 | last post by:
when the form is maximized i want that the objects that are in the form center them selves in the center of the form without any adjustments. thanx
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.