Would require the use of writing a value in either the registry or a file located in the application directory. On for load, it simply reads in the value, checks to see if it is a certain value, then runs the appropriate code. I tend to stay away from the registry and just use a simple text file, but not saying you should do the same, just a preference...