Complete-Reference-Vb Net 84
Complete-Reference-Vb Net 84
Note To support Windows XP visual styles, you can set the FlatStyle property of some of your visual
controls to System.
While you can easily construct a Windows application in code from scratch, as demonstrated in Chapter 9, it
is much easier and makes much more sense to let Visual Studio generate the initial application shell for you.
When you select Windows Application from the New Project dialog box, Visual Studio creates a solution (if
one is not open for the new application) and places your new project in it. This project contains various
references to core assemblies, namespaces, and so on, and one class, which is named Form1 by default.
Note To see the namespaces imported by default, open the Project Properties dialog box. To access
this, right−click the project in Solution Explorer, choose Properties, and then choose Imports
from the panel on the left side.
' NOTE: The following procedure is required by the Windows Forms Designer.
' It can be modified using the Windows Forms Designer.
' Do not modify it using the Code Editor.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
components = New System.ComponentModel.Container()
Me.Text = "Form1"
End Sub
#End Region
End Class
The InitializeComponent section is of interest to you because it is used by the IDE to hold the property
values that you visually set in the Windows Forms Designer. These properties persist in the application and
are required by the main form.
568