I am trying to use command line parameters in my application but it does not work. Is there anything wrong with the code above?Code:[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])); } }
Hope somebody can help!
DJ




Reply With Quote