Visualbasic Lecture3 PDF
Visualbasic Lecture3 PDF
Addison Wesley
is an imprint of
2011 Pearson Addison-Wesley. All rights reserved.
Chapter 2
Creating Applications with
Visual Basic
Copyright 2011 Pearson Addison-Wesley
Addison Wesley
is an imprint of
2011 Pearson Addison-Wesley. All rights reserved.
Section 2.1
Focus on problem Solving: Building the
Directions Application
various properties.
Copyright 2011 Pearson Addison-Wesley
"e!ine #hat the Application is $o
"o
Input: 'one
Form
'ame: Form1
$e4t: 3"irections3
2abel
'ame: 2abel1
$e4tAlign: 8iddleCenter
%ictureBo4
'ame: %ictureBo41
%icture: &otel8ap.;pg
Si+e8ode: StretchImage
Chapter 2 ) Slide <
Copyright 2011 Pearson Addison-Wesley
Create the Forms and (ther Controls ,sing
Visual Basic
"esign 8ode
6un 8ode
Brea- 8ode
Section 2.2
Focus on problem Solving:
6esponding to 7vents
application.
Copyright 2011 Pearson Addison-Wesley
8odi! the Directions Application
2abel
'ame: lbl"irections
Visible: False
Button
'ame: btn"ispla"irections
Button
'ame: btn74it
$e4t: @74itB
Chapter 2 ) Slide
15
Copyright 2011 Pearson Addison-Wesley
$he Code #indow
$hen a dot
For e4ample:
lblDirections.Visible
For e4ample:
lblDirections.Visible = True
#indow $abs
8enu Bar
Deboard Shortcuts
For 74ample:
Chapter 2 ) Slide
2*