DJ_Catboy
Sep 3rd, 2003, 07:10 AM
[STAThread]
static void Main(string[] args)
{
int x = args.GetUpperBound(0);
if (x == -1) {
MessageBox.Show("No Parameters!");
} else {
Application.Run(new frmMain(args[0]));
}
}
I am trying to use command line parameters in my application but it does not work. Is there anything wrong with the code above?
Hope somebody can help!
DJ
static void Main(string[] args)
{
int x = args.GetUpperBound(0);
if (x == -1) {
MessageBox.Show("No Parameters!");
} else {
Application.Run(new frmMain(args[0]));
}
}
I am trying to use command line parameters in my application but it does not work. Is there anything wrong with the code above?
Hope somebody can help!
DJ