I am trying to run a C#.net windows application that has the ability to run from command line parameters and/or just launch normally. Basically I have a Sub named Main that obtains the command line arguments but how do I get it to just launch Form1 if there are none?
Here is what my Main looks like:
static void Main(string args)
// Set up a string variable to concatenate all of the arguments in.
string strArgs = "";
// Loop through all of the arguments, adding them to the string variable.
foreach (string arg in args)
strArgs = strArgs + (arg) + " ";
// Display the command line arguments.
// Proceed to launching the application as usual.