I have an application compiled as GUI winforms. If any parameters are passed I am trying to start is as a console app instead of winforms app so I have been looking at following article.
There is explained two methods to do this: visual studio and ildasm.exe.
I am interested in ildasm.exe method which uses editbin.exe to mark gui winform app as a console application at startup.
So:
- Where can I obtain editbin.exe
- How to mark gui winform app as console app from c# using editbin.exe, some example?
- If need to run as GUI mode, it relaunches itself as a GUI app, how to relaunch winform app? any example?