The most important property for any control is its name.  Careful naming of your controls will make programming much easier.  There are a few rules for naming controls and also some conventions.  A convention is what people usually do to make things easier to understand.


Rules:

Control names cannot have more than 40 characters

The name must start with a letter

It can only contain letters, numbers and the underscore _ character

Conventions:

In Visual Basic programming, the first 3 letters (called a prefix) of the name  of a control tell you what type of control it is. Some of the common prefixes used are:

Control

Prefix
 
Form frm
Command Button cmd
Label lbl
Text Box txt
Check Box chk
Option Button opt

The rest of the name usually shows what the control does. It also usually starts with an upper case letter.

So cmdBeep might be the name of a command button that causes a beep, optGreen might be the green option, lblChoice might be the label showing the user's choice etc.

 

Control: 

A control is an object on your form such as a command button, a scroll bar etc

Properties: 

An object's properties determine its name, colour, size, location and appearance on the screen.

Events:

An event is something that the user does or that happens as your program runs - for example the user might click on a button, or press a certain key, or move the mouse over a picture, a timer might reach a certain value etc  All of these things are events.

Procedures:

A procedure is a block of program code that tells the computer what to do if a certain event occurs. For example, you might write a procedure to tell the computer what to do if the user clicks on the exit button, or you might have another procedure that tells the computer what to do if the user presses the space bar etc  A full application will consist of many different procedures to respond to all the events that might occur.