How to pass arguments when debugging a dot net application
Go to the project properties - Debug section, and under the Start Options heading there is a section for Command line arguments.
Goto Project->Properties
and click the Debug
Tab.
There is a section for command line arguments:
Right click your project in VS -> Properties -> Debug tab
There is an area where you can specify command line arguments. When you debug your project, VS will start it up with these args.