Okay, enough about exceptions. You're here to learn how to debug your program, and here's the good news: .NET provides extensive support for debugging. Visual Studio .NET provides even more support. Together, .NET and Visual Studio .NET make it much easier to find and remove most of the bugs in your program.
Notice that I said most. I'll go further, nearly allbut not all, I'm afraid. Never all. The sad but honest state of the industry is that the likelihood of there being bugs in your program is directly proportional to the complexity of your project. Most modern commercial projects are insanely complex, and a certain number of bugs are (nearly) inevitable in any real project. In addition, software attracts bugs like bread crumbs attract insects. Spray all you want, and you'll still find an ant or two in the pantry.
Windows Forms and the .NET Framework
Getting Started
Visual Studio .NET
Events
Windows Forms
Dialog Boxes
Controls: The Base Class
Mouse Interaction
Text and Fonts
Drawing and GDI+
Labels and Buttons
Text Controls
Other Basic Controls
TreeView and ListView
List Controls
Date and Time Controls
Custom Controls
Menus and Bars
ADO.NET
Updating ADO.NET
Exceptions and Debugging
Configuration and Deployment