Console.Write Not Working In Win Forms App

前端 未结 7 1200
走了就别回头了
走了就别回头了 2021-01-12 05:08

I created a VB.NET Windows Forms Application in Visual Studio 2008. When I run my program from the command-line, I get no output (only the next prompt).

What am I d

7条回答
  •  迷失自我
    2021-01-12 05:20

    Tested similar code with a C# .NET Windows Form Application. Outputs and beeps nicely within Visual Studio but only beeps when run at the command line.

    If I change the Output Type to Console Application under the Application tab for the Project properties, I get to use both the form and console :)

提交回复
热议问题