Under the Hood of a VS.NET Windows Application

When you create a Windows Application project, it provides starter code for the main form and sets up references to the required .NET libraries. The Windows Forms Designer interface can then be used to design the forms.

Code Generated by Windows Form Designer

As you can see from Figure 7-18, the Code window hides the code that was generated by the Forms Designer. It uses a Region directive to place a + (plus) next to a code segment. When collapsed, the Region directive displays a comment. When the + is clicked, the Code window expands the code.

Figure 7-18. The Code window hides generated code.

The ...

Get Application Development Using Visual Basic® and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.