Zebra0.com

visual-basic codeVisual Basic: Windows Programming

Visual Basic: Windows Programming

Learn Visual Basic in FREE step-by-step lessons.

Writing Code in Visual Basic

We have learned to add controls and change properties at design time.

In this lesson we will learn to write code.

In Visual Basic we will write code to execute when an event occurs:

Sometimes we will use the code to change properties of the form or the controls.
For instance we want to change the backcolor of the form when the user clicks BtnRed.
We may want to hide a control under certain circumstances.

The possibilities are endless! Let's get started!

Please study the material at each of the links below.

  1. Writing Code for Buttons

  2. Comments

  3. Selecting code from list

  4. Arguments

  5. Concatenation

  6. Sender

  7. The Visible Property

  8. Selecting Events

GlossaryGlossary for code lesson
Full Glossary