Académique Documents
Professionnel Documents
Culture Documents
ANDHRA PRADESH
Name : P. Sri Vidya
Designation : Lecturer
Branch : DCCP
Institute : Govt. Polytechnic for Women, Bheemili
Semester : VI Semester
Subject : Visual Basic II
Subject code : CCP- 603
Topic : Displaying and Printing Information(1/10)
Sub Topic : Fundamentals of font setting and
Displaying text on Forms and Picture boxes
Duration : 50 min.
Teaching Aids : PPT
CCP603.1 TO 2 1
Objectives
CCP603.1 TO 2 2
What is font?
CCP603.1 TO 2 3
Font characteristics include
Font type
Font size
Font color
Others
CCP603.1 TO 2 4
What is True type font?
CCP603.1 TO 2 5
Does Windows OS support various types
of fonts?
CCP603.1 TO 2 6
Characteristics of fonts
selected color
Font Bold : ‘True’ for Bold;’False’ for normal.
Font Italic : ‘True’ for Italic;’False’ for normal.
CCP603.1 TO 2 7
Characteristics of fonts
CCP603.1 TO 2 8
Creating a new font
We can create our own font using StdFont object & apply
it to text programmatically as shown below.
CCP603.1 TO 2 9
How can we display a text on a Form?
For the current form we need not give the form name.
E.g.: Print “Govt. Polytechnic For Women”.
CCP603.1 TO 2 10
How can we display text on a picture box?
CCP603.1 TO 2 11
Can we display multiple text items on form
or picture box?
CCP603.1 TO 2 12
What happens if the form or picture box is
too small to display all the text?
CCP603.1 TO 2 13
Summary
Text vs Fonts
Characteristics of Fonts
True type Fonts
Changing Font characteristics
Creating Fonts programmatically
Print method to display text on forms and picture
boxes.
CCP603.1 TO 2 14
Quiz
CCP603.1 TO 2 15
Font formatting allows the following operations.
a) Bold
b) Italic
c) Size
d) All the above
CCP603.1 TO 2 16
3. We can display the text on the form using
a) Display method
b) Print method
c) Print form method
d) Show method
CCP603.1 TO 2 17
Frequently asked questions
CCP603.1 TO 2 18
Assignment
CCP603.1 TO 2 19
Thank you
CCP603.1 TO 2 20