dbTalk Databases Forums  

Why can't I hide a form

comp.databases.ms-access comp.databases.ms-access


Discuss Why can't I hide a form in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
David-W-Fenton
 
Posts: n/a

Default Re: Why can't I hide a form - 10-11-2010 , 11:33 AM






"Phil" <phil (AT) stantonfamily (DOT) co.uk> wrote in
news:i8pa1n$k5p$1 (AT) speranza (DOT) aioe.org:

Quote:
On 09/10/2010 02:49:12, "David-W-Fenton" wrote:
Salad <salad (AT) oilandvinegar (DOT) com> wrote in
news:SJmdnXahSsMbGzLRnZ2dnUVZ_uSdnZ2d (AT) earthlink (DOT) com:

I guess Restore or Maximize
resets the visible property.

...which is why you want to skip running restore/maximize if the
form is not visible, as in the code I posted.

There isn't anything complicated here.

And, in fact, I'd suggest it's better to write a function for
opening any generic form and restore/maximize that can handle
opening hidden, too. That way, you don't need code in each form
to deal with it.


Agreed David, but it's the fag of modifying well over 100 forms -
but I'll get round to it. The generic function you suggest would
have to be called on the OnOpen of every form I presume
Er, what? I'm suggesting you get away from having any code in the
forms at all, and have an OpenForm function that sets things up,
maximizes/restores, or opens hidden or whatever. That way you don't
have any code to put into the forms -- it all goes into your generic
function to open all forms (or all forms you want to open in that
manner).

--
David W. Fenton http://www.dfenton.com/
contact via website only http://www.dfenton.com/DFA/

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.