View contents of this chapter

Creating The Interface

Setting up The Form

Forms are the foundation for creating the interface of an application. Your program can have one or many forms. They act as containers for other items.

Select File, New Project to display the New Project Window. Now select the Standard EXE icon. Your VB environment will hold only a single form named "Form1".

Drag the form's lower right sizing handle up and to the left. As you drag the form, notice the width and height values at the right of the toolbar as they change. Size the form so that it measures 3400 by 2500 twips.

Play Sound You can also set the height and width values of the "Form" from the properties window.

Play Sound A twip is a screen measurement. A twip is a resolution independent measurement value for an imaginary small screen dot.

The application's background is complete, now we must draw the objects that are required for this application. This application requires only two controls from the Toolbox (a text box and a command button).

Control
Text Box
Command Button


Baby Steps
Adding control's to a form typically involves one or more of these steps:

  • Select the control from the toolbox
  • Place the control in its proper location
  • Size the control
  • Setting the properties for the control
  • Write the code to activate the control


© Universal Teacher Publications        INDEX Previous Screen Next Screen