0% found this document useful (0 votes)
13 views

Week 3 Option Button and Check Box Without Pretest

Uploaded by

rainieranclote0
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Week 3 Option Button and Check Box Without Pretest

Uploaded by

rainieranclote0
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

OPTION BUTTON

AND CHECK
BOX
Prepared by : MERCY ANN G. GIERE
LEARNING OBJECTIVES
Define option button and check box
Identify the controls of option button and check box
Combine option button and check box in a program
WHAT’S IN?
OPTION BUTTON
 Option buttons are also called radio buttons. It is used to

allow users to select only one button at a time in a group


of options.
 Option buttons are grouped and usually placed inside a

frame.
THE COMMONLY USED
PROPERTIES
Property Options Description
Name Name of the option button that Visual Basic
calls in run-time

Caption The text appearing at right of the button


Value True The button is selected
False The button is not selected
Style 0 – Standard The button is just a normal option button
1 - Graphical The button will look like a command button
EXAMPLE
CHECK BOX
Check boxes allow users to select several boxes at a
time in a group of options.
Check boxes are grouped and are usually placed
inside a frame.
THE COMMONLY USED
PROPERTIES
Property Options Description
Name Name of the check box that Visual Basic calls
during run-time
Caption The text appearing at right of the check box
0 - Unchecked The box is not checked
1 - Checked The box is checked
2 - Greyed The box is checked but cannot be checked or
Value unchecked by the user. It tells that not all options
are selected or available.

TabIndex Indicates the tab order of the check box.


CODE
CODE
RUN TIME
WHAT I HAVE LEARNED
Complete the statement based on what you have learned.
My chosen word is _____________________
First I know ___________________________
In Addition, I know _____________________
Finally I know _________________________
LEARNING TASK 1
Direction: Using the visual basic software, create a program by following the
instructions below:
1. Create a program that will ask for a text message or greeting. The text
message should appear in a label box upon clicking a certain button.
2. Supply the user with options for the following:
a. color of the background
b. color of the text
c. picture
3. After a certain button are clicked, the necessary changes will
occur.
4. Choose your own colors and picture. Design your own user
interface.
5. Save your work using your Lastname plus the activity name, ex.
CruzTask1MessageOption

You might also like