Forms pop-up at startup
Posted on 2003-11-06
Whenever I create a new form, it has to show, and there's no way to initialize it to be invisible.
I searched in MSDN, and found this article "Setting a Form to Be Invisible at Its Inception" which suggests that I create the form from within a startup module, but it still doesn't solve my problem.
The form I'm trying to show at startup is dynamically positioned, that means I want to set its position at runtime -- so I want it to be invisible until I reposition it, otherwise it pops up in the middle of the screen for a couple of seconds and then repositions itself, which is what no one ever needs. In other words, my form sticks itself to the right side of the screen, which can be different everytime I run it (I could be on 800x600 or even 1280x1024).
And what if I want it to become a tray icon (aka. notify icon) and pops up just when the user clicks the tray icon, it also pops up and then disappears.
Anyone faces the same problem? It's really annoying, I can't believe I want to go back to VB6 for this reason!