Hi
I'm writing a program that gives the user the option to have it start on startup. I've managed to write some code that adds an entry into the registry, which runs the program. Is it possible to have the program run differently when opened by startup rather than by the user? e.g. when it opens with start up, it only opens to the system tray rather than displaying the form. Any hints / tips would be greatly appreciated!
Cameron
Loading
CameronPosted Aug 26, 2009, 11:05 PM
Jan MontanoPosted Aug 23, 2009, 9:34 PM
During startup, you could easily pass a parameter on your application (which will serve as a marker that it was executed on startup). You just need to handle that parameter and perform necessary display changes.
For user-execution, don't pass parameters.