The thing is, i really dont want the console window to show up...but the solution should be running. My point here is, I want to keep the application running in the background, without any window coming up.
+1
A:
Change the output type from Console Application to Windows Application. This can be done under Project -> Properties -> Application in Visual Studio:
0xA3
2010-10-04 08:27:04
Console window flashes and goes back. How do i keep the application running with no window at all?
SOF User
2010-10-04 08:29:28
@SOF User: How do you start the application? By double-clicking in Explorer or from the Start Menu?
0xA3
2010-10-04 08:30:36
no by pressing F5 in Visual Studio
SOF User
2010-10-04 08:33:22
i have also put Console.ReadLine();
SOF User
2010-10-04 08:33:51
Remove the `Console.ReadLine`. It doesn't make any sense if you don't have a console window.
0xA3
2010-10-04 08:37:10
+1
A:
Change your application type to a windows application. Your code will still run, but it will have no console window, nor standard windows window unless you create one.
Sekhat
2010-10-04 08:27:14
Console window flashes and goes back. How do i keep the application running with no window at all?
SOF User
2010-10-04 08:30:39
You make sure it doesn't terminate. There really is not much else to say without more information. What does the program do? Does it run something in a loop?
Lasse V. Karlsen
2010-10-04 08:56:58
A:
What about a simple tray application?
http://alanbondo.wordpress.com/2008/06/22/creating-a-system-tray-app-with-c/
Also, see this SO thread: http://stackoverflow.com/questions/2534378/vb-or-c-run-app-in-system-tray-and-listen-to-keyboard-input-even-when-the-app
Tim
2010-10-04 08:34:03
A:
Maybe you want to try creating a Windows Service application. It will be running in the background, without any UI.
Lee Sy En
2010-10-04 08:54:38