r/visualbasic • u/free_spam • Apr 22 '21
Windows Forms Application without console windows
I am currently creating a Windows Forms application for work.
Whenever I execute the app it not only opens the form itself but also a console window.
I've found out the apparently switching the type of the application from "console application" to "Windows Application" should result in the desired behaviour. But unfortunately it still persists.
Is there anything else that I might have to set to disable the console?
Thank you all in advance.
5
Upvotes
3
u/chacham2 Apr 22 '21
Console applications open a console. Windows applications do not (automatically). Hence, if you switch the application type from the former to the latter, the console should not open. I have done this many times.
My thoughts are, either your application is not being recompiled before running as a Windows application, or the code is opening to console. To verify the former, go to Build->Rebuild Solution and try again. For the latter, use F11 to see when the console opens.