You can access the command line parameters by declaring your Main function like so:
public static void Main(string[] args)
You'll want to store these somewhere that your WinForm can access them from. I would suggest a static class (this used to be called a global variable):
public static class ArgHolder
{
public static Args { get; set; }
}
Now, from Main, you can just call ArgHolder.Args = args;
From your WinForm, you can retrieve these when you need them.
if ( ArgHolder.Args != null && ArgHolder.Args.Length > 0 )
{
// We have strings, starting with ArgHolder.Args[0]
}
Hope this helps!