Interview Questions

Why does my Windows application pop up a console window every time I run it?

C# Interview Questions and Answers


(Continued from previous question...)

111. Why does my Windows application pop up a console window every time I run it?

Make sure that the target type set in the project properties setting is set to Windows Application, and not Console Application. If you're using the command line, compile with /target:winexe & not target:exe.

(Continued on next question...)

Other Interview Questions