One way is to add a Module with a Boolean variable. When you go to create
an instance of the window, see if the variable is set to True. If it is,
just Activate the current instance of the window. If not, create a new
instance of the window and set the variable to True. You can set the
variable to false in the Closing event of the window.
"Mitchell Vincent" <mv******@newsgroup.nospam> wrote in message
news:uI**************@TK2MSFTNGP14.phx.gbl...
I have an MDI application here and I would like to have one of the windows
only show once (maximize and get the focus if it has already been created).
How can I check if a window already exists in an MDI app?
Thanks!
--
- Mitchell Vincent