hide console window
-
Hey, me again, just wondering iff anyone knows how to get rid of the console window... Im making my forms dynamically, using a console application, but if the console window shows, it isnt as attractive... //Otis
I think you get what you want, if you create a Windows application and fill the Main-method with some other code before showing a form.
static void Main() { // // Do what you want here. // System.Windows.Forms.Application.Run(new MainForm()); }
www.troschuetz.de -
I think you get what you want, if you create a Windows application and fill the Main-method with some other code before showing a form.
static void Main() { // // Do what you want here. // System.Windows.Forms.Application.Run(new MainForm()); }
www.troschuetz.deI know, but i made a console program, its an irc server, and now i want to make it use a tray icon, so you can tell tyhe status of the server, but i already coded 75% of it in console, and i cba to switch to a windows application... Isnt there a compiler directive to hide the console? //Otis
-
I know, but i made a console program, its an irc server, and now i want to make it use a tray icon, so you can tell tyhe status of the server, but i already coded 75% of it in console, and i cba to switch to a windows application... Isnt there a compiler directive to hide the console? //Otis
Don't know a direct way to do this, cause I never coded a console application with .NET. Maybe you could use some API methods to hide the console window. Is it so complicated to copy the "console" code to a Windows Application to reach the effect you want.? www.troschuetz.de
-
Don't know a direct way to do this, cause I never coded a console application with .NET. Maybe you could use some API methods to hide the console window. Is it so complicated to copy the "console" code to a Windows Application to reach the effect you want.? www.troschuetz.de
yes. One, is file size, and i dont want the program to be loading all the stuff i dont need. File size saves time (downloading and running) and saving time means more users (most likley me and a bunch of friends) will want it to be fast, small, etc. Would it be possible to grab the process and set it to hid somehow through that? //Otis