1. change your Main to take in arguments
2. Create 2 shortcuts which execute your program from commnad line (a. with minimzed param, b. with maximized param)
cheers
I don't wan't two shortcuts! Suppose that i have one checkbox where checked state means that the shortcut to the program should be created in the Startup folder, and when user unchecked it then the shortcut is removed from the Startup folder (Shell links).
When shortcut to the program is created in the Startup the program execute itself immediately after logon, and program goes to System Tray.
Otherwise, if shortcut isn't there it should run normally.
The problem is, what if shortcut is in the Startup folder, user has closed the program, but wan't to run it again, in the same session - and, user don't wan't that program hide itself to the SysTray when he execute it on that way!
Do you copy?!