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 and not the console.. so where is the output?
See Question&Answers more detail:osI created a windows form solution and in the constructor of a class I called
Console.WriteLine("constructer called")
But I only got the form and not the console.. so where is the output?
See Question&Answers more detail:osYou 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");