On the left side of the screen in Visual Basic there is a toolbox. We will start by dragging a label to the form and changing some of the properties of the label.
Get Adobe Flash player

toolbox

On the left side of the screen there is a button with the words toolbox. When you move the mouse over this button, the toolbox window opens. The icons in the toolbox represent controls (or objects) that can be placed on the form.

Placing Controls on the Form

The controls (text box, button, label, etc.) can be placed on the form two ways:

Start a new project and add a label to the form. The label will have the text Label1. that is also the name of the label. Your project now has two objects: the form, Form1, and the label, Label1. Click first on the form then on the label to select it. Depending on which control is selected (look for the handles) the list of properties changes. Look at the property list for the form and the then for the label.

Change the text for the form to "Greetings." Change the text for the label to "Welcome to my World." Although there is no way to change the appearance of the title, the label has many properties that can be changed to alter the appearance of the words.

Try changing each of these properties of the label: Font, ForeColor, BackColor, and BorderStyle.


INDEX, Controls, Adding Pictures, The PictureBox Control, Tool tips and Naming controls, List of Controls, Hot Spots
Next lesson: Writing Code in Visual Basic

Copyright © Zebra0.com
All rights reserved worldwide.

 
 

Controls