Hi,
I have a windows app that I created in C# that has a dialog. Then I wanted to create a command line app that has access to the functionality that was done for the windows app. I did this by setting the "Output Type" to Console Application. The code looks something like this:
Everthing works fine except for the fact that the windows app has a console window. Is there a way to either set the "Output Type" programatically or kill the console when I bring up the dialog?
Thanks,
Merik
I have a windows app that I created in C# that has a dialog. Then I wanted to create a command line app that has access to the functionality that was done for the windows app. I did this by setting the "Output Type" to Console Application. The code looks something like this:
Code:
if (args.Length == 0)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
else
{
Form1.RestoreProject(arg[0]);
}
Thanks,
Merik
Comment