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
Program to start on start up, but run differently than if the user had opened the program
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jan MontanoRank #1,295 · 1.3K reputationPosted Aug 23, 2009, 5:34 PM EDT
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.
Cameron9 reputationPosted Aug 26, 2009, 7:05 PM EDT