Legal Information
PC Knowledge Base - Writing the Visual Basic Code<

Good Knowledge Is Good2Use
Each Command button defined invokes different pieces of the overall program. By double clicking on the button an editor appears and the following lines are automatically generated
Private Sub OK_Click( ) and
Dim ....
End Sub
The lines of code that will perform the operation associated with the Command button are placed between these two lines. The name OK_Click() is also generated automatically and refers to the action, click, that when performed on a button with a Name of OK is executed.

Following the Private Sub .. statement, enter a Dim statement to define any variables used within the code executed by this command button. Values already defined when constructing Text boxes (the Name value) do not need to be defined.

The following sections contain pieces of Visual Basic code that perform specific functions.



Search Knowledge Base Feedback
If you like our web site refer a friend.
Your friends name.
Your friends email address.
Your Name
Your Email Address


© Copyright 1998-1999 GOOD2USE