Free language processing service and NLP C# code
Current topic Practical tutorials for Visual Studio

While programming, it is inevitable to have various errors in your code. Sometimes, it is not easy to manually find those errors. The Error List Window of Visual Studio can instantly capture the errors and suggest you how to correct them by pointing out why they occurred. Let's use the MyInternetBrowser application we created in the previous tutorial to illustrate how to use this functionality.

1) Open MyInternetBrowser by double-clicking the solution file MyInternetBrowser.sln. Open the code file Form1.cs from the Solution Explorer Window.

2) Enable the Error List Window by View > Error List if it is not enabled already. Toggle the Auto hide pin to make this window always visible. As shown in Figure 1, if your code is error-free, there is no message in this window.


Enable the Error List Window
Fig. 1 Enable and make the Error List Window always visible.

3) Comment out the first closing brace bracket } and the code webBrowser1.Navigate(url);, and then add webBrowser1.Navigate(); to deliberately delete the argument of the Navigate method. As shown in Figure 2, during your changing the code in this way, two error messages appeared in the Error List Window.


Enable the Error List Window
Fig. 2 Error messages appeared in the Error List Window.

Modify your code appropriately, the error messages will disappear and the application is ready to be compiled and executed.

In this tutorial, we learned how to take advantage of the Error List Window of Visual Studio to capture the code errors. In the next tutorial, we'll learn Add References and using directives to your project.


Skip Navigation LinksHome > Visual Studio Tutorials > Error List Window