M
Max
Hi All,
I am developing an application that needs to run in one of two modes:
1. If No command line param is provided the application should run as
Window form.
2. If command line param is provided the application should run as a
console application.
For this i created a windows application with Main
static void Main(string[] cmdLine)
{
Form1 frm = new Form1();
if(cmdLine.Length == 0)
{
frm.InitializeForm();
Application.Run(frm);
}
else
{
frm.ProcessCommandline(cmdLine);
}
}
Problem i have is "Console.writeline" does not work while running the
application as console ie running the application with params.
Pls help
thanks in advance
regards
Max
I am developing an application that needs to run in one of two modes:
1. If No command line param is provided the application should run as
Window form.
2. If command line param is provided the application should run as a
console application.
For this i created a windows application with Main
static void Main(string[] cmdLine)
{
Form1 frm = new Form1();
if(cmdLine.Length == 0)
{
frm.InitializeForm();
Application.Run(frm);
}
else
{
frm.ProcessCommandline(cmdLine);
}
}
Problem i have is "Console.writeline" does not work while running the
application as console ie running the application with params.
Pls help
thanks in advance
regards
Max