CONGRATULATIONS!!!
YOU
ARE
ON
YOUR
WAY
TO
BECOMING
A
VERY
HIGHLY
PAID
VB
PROGRAMMER!!!
OBJECTIVES
This lesson will focus on the use of "controls" in Visual Basic -
objects such as scroll bars, text boxes, and command buttons - and how
to include these controls in your programs, how to change their
properties and how to attach code to them.
Most programs output information to the user and get information
from the user. The process of outputting and inputting information
is called the "user interface" aspect of the program. Windows programs
use controls for providing easy and pleasant user interface. (That's one
reason for the popularity of Windows.) Upon completion of this chapter
you will find that using fancy user interface is very easy in VB.
2. Properties and Controls
1. A certain statement appears in this book as follows:
Info = "ABC" +
> "DEF" + "GH" +
> "IJK"
> + "L"
How would you type it inside your Visual Basic Program?
(a) Info = "ABC" + "DEF" + "GH" + "IJK" + "L"
(b) Exactly as shown above
2. Suppose your program includes a vertical scroll bar by the name vsbVolume. Write a statement that places the thumb of the scroll bar at position 37.
3. Suppose your program includes a horizontal scroll bar by the name hsbDistance. How do you change the Min and Max properties of the scroll bar to 10 and 200, respectively?
TEST YOUR PROGRESS
BACK TO HOMEPAGE