473,659 Members | 2,602 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

{UNSOLVED} Keep form maximised when lost focus - Open a form in full view

106 New Member
how can i open all the forms I have in full way and have it stay that way.

I should say that I have a user interface and user can nevigate from one form to another.
I have tried using the following code in my load event and it doen't do what I want

Private Sub Form_Load()
'DoCmd.Maximize

Me.InsideHeight = 10000
Me.InsideWidth = 15100

End Sub

I want the forms to be in full view, and when I caome back to it via aother form I still want it to be in full view.

Thanks
Nov 13 '06 #1
11 2698
MMcCarthy
14,534 Recognized Expert Moderator MVP
how can i open all the forms I have in full way and have it stay that way.

I should say that I have a user interface and user can nevigate from one form to another.
I have tried using the following code in my load event and it doen't do what I want

Private Sub Form_Load()
'DoCmd.Maximize

Me.InsideHeight = 10000
Me.InsideWidth = 15100

End Sub

I want the forms to be in full view, and when I caome back to it via aother form I still want it to be in full view.

Thanks
If you use

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Load()
  2.  
  3.    DoCmd.Maximize
  4.  
  5. End Sub
  6.  
Also in the form properties set:

Under format tab set min max buttons to 'None'
Under other tab set Modal to 'Yes'
Nov 13 '06 #2
tara99
106 New Member
If you use

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Load()
  2.  
  3.    DoCmd.Maximize
  4.  
  5. End Sub
  6.  
Also in the form properties set:

Under format tab set min max buttons to 'None'
Under other tab set Modal to 'Yes'
Hi

I have already done all that, the min, max, close button are set to none, and the Model is set to yes.
Also I have used the DoCmd.Maximize in my load form, it opens the form in full view but when I come back to same form via some other form the it doesn't open it in full view.
I don't know what else to do.
???????
Nov 13 '06 #3
NeoPa
32,568 Recognized Expert Moderator MVP
That would have been interesting to know before.
What it means is that you are un-maximising elsewhere.
In Access, as in most Office applications, if you Max or unMax one window it affects them all.
If you want it to RE-MAXIMISE every time you select it then you will need to add
Expand|Select|Wrap|Line Numbers
  1. Call DoCmd.Maximize
to your form's OnActivate event.
Nov 13 '06 #4
Killer42
8,435 Recognized Expert Expert
That would have been interesting to know before.
What it means is that you are un-maximising elsewhere.
In Access, as in most Office applications, if you Max or unMax one window it affects them all.
If you want it to RE-MAXIMISE every time you select it then you will need to add
Expand|Select|Wrap|Line Numbers
  1. Call DoCmd.Maximize
to your form's OnActivate event.
Could it be the way control is transferred to the form? I'm thinking of something equivalent to when you start another apoplication - you can specify to start it minimised, maximised or "normal". Presumably normal is the default, so perhaps the code which is activating the form is inadvertently doing this.

As you can tell, I'm a bit vague on this area - haven't done much form-to-form stuff in Access VBA.
Nov 13 '06 #5
NeoPa
32,568 Recognized Expert Moderator MVP
No Killer - I don't think so.
It became clear only at the end that it wasn't actually how it's started that's the problem, but that it starts ok but COMES BACK as normal after switching to another window (within Access).
Clearly something (or the operator maybe) is normalising it elsewhere.
I'm expecting my previous post will produce a response to say it's all sorted now.

I've just reread the original post and noticed that there WAS mention of the requirement to re-maximise on return after all.
My apologies to Tara99.
Nov 14 '06 #6
tara99
106 New Member
That would have been interesting to know before.
What it means is that you are un-maximising elsewhere.
In Access, as in most Office applications, if you Max or unMax one window it affects them all.
If you want it to RE-MAXIMISE every time you select it then you will need to add
Expand|Select|Wrap|Line Numbers
  1. Call DoCmd.Maximize
to your form's OnActivate event.
Thanks so much NeoPa
It is working fine now

Cheers
Nov 14 '06 #7
Killer42
8,435 Recognized Expert Expert
Thanks so much NeoPa
It is working fine now
Cheers
Drat! :)

NeoPa, I realise the problem was when coming back from another form, I just didn't know how that was being achieved. Anyway, all's well that ends well, huh?
Nov 14 '06 #8
tara99
106 New Member
No Killer - I don't think so.
It became clear only at the end that it wasn't actually how it's started that's the problem, but that it starts ok but COMES BACK as normal after switching to another window (within Access).
Clearly something (or the operator maybe) is normalising it elsewhere.
I'm expecting my previous post will produce a response to say it's all sorted now.

I've just reread the original post and noticed that there WAS mention of the requirement to re-maximise on return after all.
My apologies to Tara99.
Thanks NeoPa
Now I have another problem with my other form.
I have main window, I click a button and I go to another form, in this form I have a dropdown list and a button next to it, once the user selects an item from the list and hit the button it will open another form holding information for that item. now this form opens in full view althought I haven't set it to open in full view.
One more thing if I Click this form directly it opens fine.
If i go via other forms it opens in full view.
I am not sure what is wrong here?
????
Nov 14 '06 #9
PEB
1,418 Recognized Expert Top Contributor
Simply the form gets the maximized staus of the previous form.

If you want to escape this behavior
on activate event in the form properties write:

DoCmd.Restore
Nov 18 '06 #10

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

Similar topics

0
6468
by: CSDunn | last post by:
Hello, I have a problem with field filtering between an Access 2000 Project form (the application is called CELDT), and the report that shows the results of the filter. Both the form and the report are based on the same View addressed in the Record Source of both as 'dbo.CLMain_vw'. The View resides in a SQL Server 2000 database. There are two different problems I am having with filtering: The first involves filtering in the form by date...
25
10220
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the data in each record, which includes the ID of the father and the mother (who also have records in the table). One record per form. I have a Tab Control in the form, and in one of the tabs I have a subform (sfmSiblings) in which I wish to list...
1
352
by: Ant | last post by:
I have a form ‘Main’ and it is maximised, on the form is a command button to open another form over the top I always want it to open in a window restored, currently sometimes it opens maximised and sometimes it opens restored. If it opens maximised and I then click restore the ‘Main’ form also restores I want the main form always set to maximise. I have tried attaching a macro (Action Restore) to the on open property of the other form...
7
1901
by: xtra | last post by:
Hi Folk I am wondering if it is possible to put a form in the middle of the screen. That is, my form is about 20cms wide by 11 cms high, but my screen is much wider and higher, so I was wondering if it possible to put it in the middle of my screen. Any ideas?
2
3757
by: Mark Ingram | last post by:
Hi, ive just had to make a Find dialog for an application and to get it in a similar style to the MS ones i have had to set the control style to TopMost so that i can move the caret around whilst the find dialog is open. However i want to know when i lose the focus, if it ISNT the form that called my find dialog, i want to change the topmost style to a normal style so that it wont be displayed on top of the other form. Does that make...
5
1821
by: ALthePal | last post by:
Hi, I am receiving this message when I start up VS.NET 1.0 on WinXP, File Failed to load in WEb Form designer. Please correct the following error, then load it again: Exception from HRESULT:0X80131019. Does anyone know what this means and how to fix/avoid this error? Thanks, Al
1
2219
by: Claire | last post by:
I'm writing an application with custom skinned controls. I have a text editor form with a rich edit control. Because there's no toolbuttons in the skinned control set, I have to use normal ones for Bold/Italic/Underline etc. Because they're normal buttons, they grab focus from the rich edit. So to prevent losing the caret Ive used the Validating event to cancel focus loss. This works great. The application can be run in either terminal or...
0
1915
by: jvitti | last post by:
I recently upgraded from Access 2000 to Access 2007 and I am having trouble with moving the focus from 1 form to another. While doing data entry if a similar claim is found the claim view form will open listing the similar claims. The data entry clerk can view 1 of the claims and by doubling clicking on the claim number some info from the claim view will be used to populate fields on the data entry screen. The following code is used...
2
3117
by: Samuel | last post by:
I have some questions that are sort of connected. I use Access 2003. Is it possible to set some properties that can make the Access window open at a particular size? Is it possible to make a form open inside the Access window so that it fills the window completely without borders? I have seen some databases that open and there is no outside borders and the forms all work neatly inside. It looks like the database form is
0
8428
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8341
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8751
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8539
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8630
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7360
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2759
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.