Visual Basic and Forms

From Techotopia
Revision as of 13:47, 18 July 2007 by Neil (Talk | contribs) (New page: The Windows Form is essential to the development of any Windows application. Forms provide the windows that make a Windows application, in fact the terms window and form are often used int...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The Windows Form is essential to the development of any Windows application. Forms provide the windows that make a Windows application, in fact the terms window and form are often used interchangeably. Forms allow the Visual Basic developer to create windows and layout controls (such as buttons, labels etc) in those forms to provide the application's user interface. In the next chapter (Designing Forms in Visual Basic) we will look at how to lay out controls inside a form. Before we reach that stage, however, there are many changes that can be made to the form itself using Visual Basic. We will cover these topics in this chapter.

Creating a New Form

Throughout this chapter we will work with a form in a new project. Begin by starting Visual Studio and creating a new Windows Application project (see Creating a New Visual Basic Project for details of how to do this). Name the project VBforms.

Once the new project is created you will see a Form in Visual Studio ready for you to begin work.

Changing the Form Name