Notice: this course covers
the older Visual Basic 6.0 programming application. Microsoft no
longer sells VB6. If you want to learn VB6, you'll have to find a used
copy somewhere like eBay or Craigslist. We will be updating this course
for use with Visual Basic 2013 soon. If you've purchased this
course within the last year, you'll get a free upgrade when it's
released.
This course follows VB104.
We'll begin by learning Option Buttons and Control Arrays. I'll show you
first how to make the option buttons without an array, and then with
one. And, of course, we'll learn how to read the value of the option
buttons in code.

Next we'll learn about creating List Boxes. We'll see how to read
the values from a ListBox, display all the items, learn about the
ListCount and ListIndex properties, and the AddItem,
RemoveItem, and Clear methods. We'll see how to create a sorted
ListBox.

We'll make two list boxes and a button to
move one
item from the left box to the right one
We'll then take List Boxes further with the Multi-Select List Box.
This will allow you to highlight multiple items and do "stuff" with
them. Of course, we'll learn how to work with this data in our VB code.
We'll learn about the Selected, ItemData and NewIndex properties. We'll
also learn about the ID tags that can be stored with items.

Same example, but moving multiple items at
once
Next we'll learn about Combo Boxes,
Drop-Down Boxes, Drop-Down Lists, and how to manipulate them with code.

A Standard Combo Box

You'll learn how to add an item to the
Combo Box if
it's not already in there
Next we'll learn about Scroll Bars - no,
not those things on the side and bottom of your window that let you move
up and down on the screen (well, you could use these for that - but we
have different plans). These scroll bars allow you to change values in
your forms. You'll learn about the Min, Max, Value, SmallChange, and
LargeChange properties, and the Change and Scroll events.

A simple Scroll Bar "spinner button"
In this lesson, we'll learn more about the
Timer control - how to use it to time longer intervals. We'll also
learn about the Format Function and how to run an event at a
specific time of the day.

This doesn't look like much, but we can
program the Timer
Control to run an event at a specific time of day - in this
example, just to close the form.
|