PC Review


Reply
Thread Tools Rate Thread

Restore Window button

 
 
=?Utf-8?B?R2x5bm4=?=
Guest
Posts: n/a
 
      10th Oct 2007
I have been able to remove the Min/Max and Close buttons form my
application's Forms and Reports - but the 'Restore Window' button remains.
I used code supplied by Wayne Gillespie (bless his heart) to remove the
above buttons - but it left the 'Restore Window' button.

Can anybody help me to remove this button from my Forms and Reports?
--
Glynn
 
Reply With Quote
 
 
 
 
OldPro
Guest
Posts: n/a
 
      10th Oct 2007
On Oct 10, 4:39 am, Glynn <Gl...@discussions.microsoft.com> wrote:
> I have been able to remove the Min/Max and Close buttons form my
> application's Forms and Reports - but the 'Restore Window' button remains.
> I used code supplied by Wayne Gillespie (bless his heart) to remove the
> above buttons - but it left the 'Restore Window' button.
>
> Can anybody help me to remove this button from my Forms and Reports?
> --
> Glynn


There is no easy way to do this. I finally gave up trying.

 
Reply With Quote
 
 
 
 
Stuart McCall
Guest
Posts: n/a
 
      10th Oct 2007
"Glynn" <(E-Mail Removed)> wrote in message
news:862F83A0-2FCD-4AEB-87A1-(E-Mail Removed)...
>I have been able to remove the Min/Max and Close buttons form my
> application's Forms and Reports - but the 'Restore Window' button remains.
> I used code supplied by Wayne Gillespie (bless his heart) to remove the
> above buttons - but it left the 'Restore Window' button.
>
> Can anybody help me to remove this button from my Forms and Reports?
> --
> Glynn


Set the form's ControlBox property to No/False. This removes all 3 buttons
regardless of the Min Max Buttons setting.



 
Reply With Quote
 
=?Utf-8?B?R2x5bm4=?=
Guest
Posts: n/a
 
      11th Oct 2007
Thanks Stuart - but no, that does not work for me. I've tried changing the
'ControlBox' to 'NO', but the RESTORE button stubbornly remains in place.
It is a real nuisance, because if the user inadvertently clicks on it, it
reduces/distorts the size of the Form or Report, with no way of getting back
to the original size - except by manually dragging and resizing the screen.
--
Glynn


"Stuart McCall" wrote:

> "Glynn" <(E-Mail Removed)> wrote in message
> news:862F83A0-2FCD-4AEB-87A1-(E-Mail Removed)...
> >I have been able to remove the Min/Max and Close buttons form my
> > application's Forms and Reports - but the 'Restore Window' button remains.
> > I used code supplied by Wayne Gillespie (bless his heart) to remove the
> > above buttons - but it left the 'Restore Window' button.
> >
> > Can anybody help me to remove this button from my Forms and Reports?
> > --
> > Glynn

>
> Set the form's ControlBox property to No/False. This removes all 3 buttons
> regardless of the Min Max Buttons setting.
>
>
>
>

 
Reply With Quote
 
Stuart McCall
Guest
Posts: n/a
 
      11th Oct 2007
"Glynn" <(E-Mail Removed)> wrote in message
news:4EAF5170-875A-4020-9E9B-(E-Mail Removed)...
> Thanks Stuart - but no, that does not work for me. I've tried changing
> the
> 'ControlBox' to 'NO', but the RESTORE button stubbornly remains in place.
> It is a real nuisance, because if the user inadvertently clicks on it, it
> reduces/distorts the size of the Form or Report, with no way of getting
> back
> to the original size - except by manually dragging and resizing the
> screen.
> --
> Glynn
>
>
> "Stuart McCall" wrote:
>
>> "Glynn" <(E-Mail Removed)> wrote in message
>> news:862F83A0-2FCD-4AEB-87A1-(E-Mail Removed)...
>> >I have been able to remove the Min/Max and Close buttons form my
>> > application's Forms and Reports - but the 'Restore Window' button
>> > remains.
>> > I used code supplied by Wayne Gillespie (bless his heart) to remove the
>> > above buttons - but it left the 'Restore Window' button.
>> >
>> > Can anybody help me to remove this button from my Forms and Reports?
>> > --
>> > Glynn

>>
>> Set the form's ControlBox property to No/False. This removes all 3
>> buttons
>> regardless of the Min Max Buttons setting.


That's odd. It works for me in A97, A2k, A2k2 & A2k3. What can I say?



 
Reply With Quote
 
OldPro
Guest
Posts: n/a
 
      11th Oct 2007
On Oct 11, 1:26 am, "Stuart McCall" <smcc...@myunrealbox.com> wrote:
> "Glynn" <Gl...@discussions.microsoft.com> wrote in message
>
> news:4EAF5170-875A-4020-9E9B-(E-Mail Removed)...
>
>
>
>
>
> > Thanks Stuart - but no, that does not work for me. I've tried changing
> > the
> > 'ControlBox' to 'NO', but the RESTORE button stubbornly remains in place.
> > It is a real nuisance, because if the user inadvertently clicks on it, it
> > reduces/distorts the size of the Form or Report, with no way of getting
> > back
> > to the original size - except by manually dragging and resizing the
> > screen.
> > --
> > Glynn

>
> > "Stuart McCall" wrote:

>
> >> "Glynn" <Gl...@discussions.microsoft.com> wrote in message
> >>news:862F83A0-2FCD-4AEB-87A1-(E-Mail Removed)...
> >> >I have been able to remove the Min/Max and Close buttons form my
> >> > application's Forms and Reports - but the 'Restore Window' button
> >> > remains.
> >> > I used code supplied by Wayne Gillespie (bless his heart) to remove the
> >> > above buttons - but it left the 'Restore Window' button.

>
> >> > Can anybody help me to remove this button from my Forms and Reports?
> >> > --
> >> > Glynn

>
> >> Set the form's ControlBox property to No/False. This removes all 3
> >> buttons
> >> regardless of the Min Max Buttons setting.

>
> That's odd. It works for me in A97, A2k, A2k2 & A2k3. What can I say?- Hide quoted text -
>
> - Show quoted text -


It only works when .popup is set to Yes. I set all of my forms as
modal, non pop-up, and call them as dialog boxes (which makes them pop-
up, but doesn't remove the control box). This is the preferred mode
of program design, as it "fixes" some very nasty behaviours in
Access. I don't have to deal with active forms hiding behind inactive
forms every time a user encounters an error. If they do encounter an
error, I can go in and see immediately what the error is and fix it
without having to go through each of my forms and setting popup to
false( the calling function can open forms non-modally too). Also, I
don't have to deal with Microsoft Accesses' every-form-is-a-child
mentality. My users do not need to juggle multiple forms ( and I
don't need the phone calls).

 
Reply With Quote
 
Stuart McCall
Guest
Posts: n/a
 
      11th Oct 2007
"OldPro" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
<SNIP>
> It only works when .popup is set to Yes. I set all of my forms as
> modal, non pop-up, and call them as dialog boxes (which makes them pop-
> up, but doesn't remove the control box). This is the preferred mode
> of program design, as it "fixes" some very nasty behaviours in
> Access. I don't have to deal with active forms hiding behind inactive


This is exactly how most of my forms are presented (for the reasons you
mentioned).

I just used A2003 to make a form as described, setting ControlBox to False,
then opened it using acDialog - no ControlBox and no buttons. <shrug> I
don't understand this...

> forms every time a user encounters an error. If they do encounter an
> error, I can go in and see immediately what the error is and fix it
> without having to go through each of my forms and setting popup to
> false( the calling function can open forms non-modally too). Also, I
> don't have to deal with Microsoft Accesses' every-form-is-a-child
> mentality. My users do not need to juggle multiple forms ( and I
> don't need the phone calls).
>



 
Reply With Quote
 
OldPro
Guest
Posts: n/a
 
      11th Oct 2007

> > It only works when .popup is set to Yes. I set all of my forms as
> > modal, non pop-up, and call them as dialog boxes (which makes them pop-
> > up, but doesn't remove the control box). This is the preferred mode
> > of program design, as it "fixes" some very nasty behaviours in
> > Access. I don't have to deal with active forms hiding behind inactive

>
> This is exactly how most of my forms are presented (for the reasons you
> mentioned).
>
> I just used A2003 to make a form as described, setting ControlBox to False,
> then opened it using acDialog - no ControlBox and no buttons. <shrug> I
> don't understand this...
>
>

It could be because I'm using Access 97... there's no accounting for
progress...

 
Reply With Quote
 
Stuart McCall
Guest
Posts: n/a
 
      11th Oct 2007
"OldPro" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
>> > It only works when .popup is set to Yes. I set all of my forms as
>> > modal, non pop-up, and call them as dialog boxes (which makes them pop-
>> > up, but doesn't remove the control box). This is the preferred mode
>> > of program design, as it "fixes" some very nasty behaviours in
>> > Access. I don't have to deal with active forms hiding behind inactive

>>
>> This is exactly how most of my forms are presented (for the reasons you
>> mentioned).
>>
>> I just used A2003 to make a form as described, setting ControlBox to
>> False,
>> then opened it using acDialog - no ControlBox and no buttons. <shrug> I
>> don't understand this...
>>
>>

> It could be because I'm using Access 97... there's no accounting for
> progress...


Nope, that's not it - I just fired up an old box with A97 on it and tried
the same test. I got no ControlBox and no buttons.

To recap:

I created a new form and set its ControlBox to No and its Modal to Yes
(although this could just as well be No from my tests). I then opened it
from the immediate window specifying acDialog as the WindowMode parameter.

The machine also still has A2.0 installed, so I tried the test with that.
The result was a form with no ControlBox and a disabled close button.

I'm intrigued as to why you (and the OP) are experiencing this problem and
not me.



 
Reply With Quote
 
OldPro
Guest
Posts: n/a
 
      12th Oct 2007
On Oct 11, 5:35 pm, "Stuart McCall" <smcc...@myunrealbox.com> wrote:
> "OldPro" <rrossk...@sbcglobal.net> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
>
>
>
>
> >> > It only works when .popup is set to Yes. I set all of my forms as
> >> > modal, non pop-up, and call them as dialog boxes (which makes them pop-
> >> > up, but doesn't remove the control box). This is the preferred mode
> >> > of program design, as it "fixes" some very nasty behaviours in
> >> > Access. I don't have to deal with active forms hiding behind inactive

>
> >> This is exactly how most of my forms are presented (for the reasons you
> >> mentioned).

>
> >> I just used A2003 to make a form as described, setting ControlBox to
> >> False,
> >> then opened it using acDialog - no ControlBox and no buttons. <shrug> I
> >> don't understand this...

>
> > It could be because I'm using Access 97... there's no accounting for
> > progress...

>
> Nope, that's not it - I just fired up an old box with A97 on it and tried
> the same test. I got no ControlBox and no buttons.
>
> To recap:
>
> I created a new form and set its ControlBox to No and its Modal to Yes
> (although this could just as well be No from my tests). I then opened it
> from the immediate window specifying acDialog as the WindowMode parameter.
>
> The machine also still has A2.0 installed, so I tried the test with that.
> The result was a form with no ControlBox and a disabled close button.
>
> I'm intrigued as to why you (and the OP) are experiencing this problem and
> not me.- Hide quoted text -
>
> - Show quoted text -


You're right, it isn't the version... it has to do with
docmd.Maximize. Once you call it, the control box comes back. I
wanted to have a main form in a maximized state without the ability to
minimize the form. There are tricks to simulate this, but they are
flakey, and in some cases require calls to the API.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Restore button on title bar does not restore window Mark Microsoft Outlook Discussion 2 19th May 2008 04:08 PM
System Restore: do restore points persist after a restore? Qu0ll Windows Vista General Discussion 3 12th Apr 2008 02:36 PM
System Restore or Password Restore or Accout Restore Mr.Peter.Pham@gmail.com Windows XP Help 2 28th Dec 2006 08:17 AM
Restore Feature of WinXP Pro SP2 Backup/Restore Utility NOT Listing Files When I Try to Restore AA Smith Windows XP General 0 24th Jul 2005 09:19 PM
System Restore can't restore to a previous Restore Point? Chuck Dreier Windows XP General 5 20th Mar 2004 01:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:41 AM.