Wednesday, March 25, 2009

how to: Windows Form GUI application take command arguments

It is not unusual to start an GUI application with some parameters passed in through command line. We are familiar with how it the work when create a console project, but the default GUI project won’t take any parameters.

To achieve this task, you can simply edit the Program.cs:

static void Main() ==> static void Main(string[] args)

Now you can use args. This easy? Yep.

1 comment:

b92q5cav0e said...

When the milling software comes into contact with the workpiece, Hand Held Scalp Massagers it removes chips from it. These are the commonest types of CNC machines which are be} in use today. The alternative of machine is dependent upon by} sort of|the type of} job, the accuracy required job finances, and the time obtainable to complete the job. A CNC Water-jet cutting machine costs more than a plasma cutter with similar specs. But it costs much less comparability with} a CNC Laser cutter with similar specs.