Re: Changing GUI to Console
What happens if you open a command line window and run it from there?
Re: Changing GUI to Console
Quote:
Originally Posted by
BioPhysEngr
What happens if you open a command line window and run it from there?
It still will not run. I get a message saying "Program1.exe" has stopped working.
Re: Changing GUI to Console
Re: Changing GUI to Console
Quote:
Originally Posted by
BioPhysEngr
Thank you! will try tommorow!
Re: Changing GUI to Console
Since that link is for C++, this is how you do it in C#:
Open project properties, Application tab (the first one), and set Output Type to "Console Application" from the dropdown.
Note, however, that there's more work to be done. In the original code, the line "Application.Run(MainForm = new frmMain())" starts a windows message loop, upon which all windowed applications are based. This is the underlying functionality which results, on the surface, in various events being raised (such as Load, Click, MouseMove, MouseDown, Paint, etc.). If the original app logic (or some of it) was based on handling WinForms events, then you have to recreate that functionality, since, in a console app, those events simply don't exist. But, since it's a server-side app, maybe the transition won't require too much work.
Re: Changing GUI to Console
Thanks, Cthulhu! Should have read my link better first... :-)