Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 10,254 of 10,840    |
|    Karl E. Peterson to Raoul Watson    |
|    Re: Detecting open forms    |
|    11 Oct 06 16:58:44    |
      From: karl@mvps.org              Raoul Watson wrote:       > I have a form which should not be opened concurently with another       > form. Is there a way to detect if a form is already open? I cannot       > use the statement:       >       > If Form1.Visible = True then ..       >       > because this statement actually will LOAD Form1 which is not what I       > want to do.       >       > I can of course use a global variable as a flag to indicate a form is       > open and reset the flag on form unload and simply test for this flag,       > but any alternative or idea is greatly appreciated.              How's about looping the Forms collection, and looking for identifiable       characteristics?       --              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca