The Code Window: Computer II: Programming With VB6
The Code Window: Computer II: Programming With VB6
lblText.Caption = “Welcome!!!”
End Sub
Good Programming Practices
To improve the readability of your code:
• Indent the lines between the Private Sub and
End Sub
• Places spaces between lines
Good Programming Practices
To be more accurate in creating subprocedures
• Double-click the control (this automatically
types the Private Sub and End Sub)
• When typing the Property, choose from the list
box that comes out after typing the first letters
then press Space
Hands On 3: Entry
Place the following in the Code
Window then modify the settings as
you see fit
Private Sub cmdNo_Click()
lblText.Caption = "Goodbye! See you soon!"
End Sub