Visual Basic


Home Introduction

Lesson 4- Giving Your Controls Names


Before we start our first program together and adding code, we need to discuss naming your controls. In order for your program to work or calculate things, you'll need to give some, if not all, of your controls names.

For example, let's look at that CheckBox you added. In order for check boxes to work in your program, you'll need to give them a name. Look over in Properties. If you haven't already, please click on the Alphabetical button. It's located at the very top. Now that everything is in order, look at the top of the list. See where it says (Name)? This is where you'll assign a name! I called it chk1 just to give you an idea of how it works.