Here is the code I am having problem:
[STAThread()]
static void Main(string[] args)
{
bool isPar = false;
if ((args.Length == 1)) {
if ((args(0).ToUpp er() == "MYPAR")) {
isPar = true;
}
}
if (isPar == true) {
myApp myForm = new myApp();
myForm.AppStart Up(true);
} else {
Application.Ena bleVisualStyles ();
Application.Set CompatibleTextR enderingDefault (false);
Application.Run (new myApp());
}
}
private void AppStartUp(bool cmSwitch)
{
Application.Exi t();
}
And I am running my application under windows task scheduler although it
passes through Application.Exi t(), the applications does not end. What might
the problem be?