Window Visibility Rules

I’m trying to keep some functionality of my program in a window. I will rarely want to look at the window, but there may be cases when I do ie for debugging. Most of the time, it is just a container for various controls, code, and what not. This particular window has an IPCsocket, pop3socket, smtpSecureSocket, etc.

The problem I am having is keeping the darned thing from displaying. I have done a little experimentation, looked through the window docs, searched this forum, but haven’t yet found the pearl of wisdom that I seek. That is, under what conditions is a hidden window shown wihtout explicitly called Show or Visible=True.

Can someone tell me where to find this info?
Is it on any event? Or a call to invalidate? Changing the contents of a control (eg label)?
I can reverse engineer but…

I bet you have the window set as implicit instance. Then any call to any property on the window will show it.

If you don’t want to see it, use Window.Visible = False to hide it and use Window.Show to see it again. In hidden state, it remains functional, so you will be able to use all your controls and stuff.

In my experience, if you have Visible unchecked in the IDE, the window won’t show unless you explicitly show it.

OK I’ve tested both methods, and it seems Tim’s got the right idea. Setting the visible property to False in the window design mode solved the problem. I expected the implicit instance idea was going to work, but despite no calls that explicitly would make the window visible (but some that set properties and such), the window was shown with implicitinstance = False and visible = True in window design mode.

BTW it may be worth noting that even though the first thing I did with the window was MyWnd.visible = False, that did not prevent the window from showing itself. It only worked when set to False on the inspector.