home bbs files messages ]

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,253 of 10,840   
   Raoul Watson to All   
   Detecting open forms   
   11 Oct 06 23:29:37   
   
   From: WatsonR@IntelligenCIA.com   
      
   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.   
      
   Thanks and God Bless.   
   _Raoul   
      
   --- 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