Program requires several modes that depend on arguments:
- Testing mode - console window is required for tracing
- Normal mode requires windows forms GUI
I can build application with Application Type: Console Application (that provides console window for application) and Windows Forms Application (that lacks console window). No application type satisfies my requirements. If I build application as console application then useless console window exists with windows forms GUI. If I build application as windows forms application - there is no console window and I can't observe console tracing.
I guess I should redirect console output and build application as windows forms application but may I simply switch Application type programmatically (show or hide console window itself?)
Thank you in advance!