Professional Documents
Culture Documents
ANDHRA PRADESH
Name of the faculty : G. Radha
Designation : Lecturer
Branch : CCP
Institute : 026 - SG Govt. Polytechnic, Adilabad
Year / Semester : III Year / V Semester
Subject : Visual Basic – I
Subject Code : CCP - 503
Topic : Understand designing the user
Interface
Duration : 50 Mts.
Sub Topic : common properties of the Controls
Teaching Aids : Animations & Images
CCP-503.9 1
Recap
CCP-503.9 2
Objectives
Upon the completion of this period you will be
able to
CCP-503.9 3
Controls & Properties
CCP-503.9 4
Common Properties of Controls
CCP-503.9 5
Common Properties of Controls
Back Color : It sets the background color on
which the text is displayed or graphics
are drawn
Font : This Property sets the face attribute
and size of the Font used for the text on
the Control
Width & Height : These set the Control’s dimensions.
CCP-503.9 6
Common Properties of Controls
time
True - allows access
False – disallows access
CCP-503.9 7
Common Properties of Controls
CCP-503.9 8
Enabled and Disabled Property
CCP-503.9 9
Application on Enabled and Disabled
CCP-503.9 10
Application on Enabled and Disabled
Place two Command Buttons side by side in the
middle of the Form.
Change its properties as listed in the below table.
CCP-503.9 12
Enabled and Disabled Property
Output
Now, run the application
VBGREEN will be applied to the Form as its Back Color
and VBRED will not be applied to the Form as its Back
Color
CCP-503.9 14
Enabled and Disabled Property (Form Design)
CCP-503.9 15
Enabled and Disabled Property (Run Time )
CCP-503.9 16
Enabled and Disabled Property
(After Execution )
CCP-503.9 17
Summary
We have discussed about:
Common properties of Controls
CCP-503.9 18
Quiz
1. To enable or disable a control the property
used is :
A) Enabled Property
B) Visible Property
C) Caption Property
D) Hide Property
CCP-503.9 19
1. Which of the following is NOT a common
property for command button, Label and Text
Box
A) Caption
B) Name
C) Text
D) BackColor
CCP-503.9 20
Frequently Asked Questions
1. List any four common properties of the Controls
2. Write the procedure to enable, disable the Controls
CCP-503.9 21
Assignment
1. Create an application to show use of ‘enable’ property
at run time
CCP-503.9 22