Disabling the Command Prompt Window (WinForms)

I have a problem. You see, I wanted to create my own sample application in C #, but without Visual Studio, creating the files automatically for me. Therefore, I decided that we would just select "Empty Project" and then create the Program.cs file myself and then manually add the Windows Form from the Project menu. Everything went well.

But then, when I clicked the Debug button, to my surprise; The console window is located outside the application window. And if I try to close the console window, it also closes my program window. (This is NOT a console based application).

Can someone help me get rid of this console window?

I looked everywhere, but found nothing on this.

+3
source share
1 answer

Go to the properties of your project and change the application Output Typefrom Console Aplicationto Windows Application.

This will fix your problem.

+8
source

Source: https://habr.com/ru/post/1722211/


All Articles