I have written a Winforms application that will function in two ways:
If no command line arguments are supplied, the main form of the application will show, and the user can interact with the application.
If a command line argument is supplied, the main form is not shown, and the application perfoms the operation defined by the command line argument and then shuts down.
I would also like to display the command line argument to the user in a MessageBox, if the application is run from the Visual Studio IDE and the command line arugment has been specified in the Properties\Debug page.