Re: Visual studio question

If your program is a console application, pressing F5 will launch it in a new window with the debugger attached, then that window will close as soon as the program finishes running.
That is often immediately, so might seem like nothing is happening.
If you press control F5 then it will launch without the debugger attached, but will also leave the window up after the program runs, with a message telling you to press a key to continue, which will then close the window.
You can add this line at the end of your main function in order to get the window to stay open until you press a key, even when just pressing F5 to launch it.
Console.ReadKey();

Hope this helps.

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ian Reed via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : nuno69 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : nuno69 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ty via Audiogames-reflector

Reply via email to