windows form .. console.writeline() where is console?

后端 未结 4 1944
情深已故
情深已故 2020-12-08 09:13

I created a windows form solution and in the constructor of a class I called

Console.WriteLine(\"constructer called\")

But I only got the form

4条回答
  •  醉梦人生
    2020-12-08 09:45

    You should also consider using Debug.WriteLine, that's probably what you're looking for. These statements are written out the trace listeners for your application, and can be viewed in the Output Window of Visual Studio.

    Debug.WriteLine("constructor fired");
    

提交回复
热议问题