CHAPTER 1: Lesson C

Hello!
I am Ma. Wennilou Porazo
Instructor
1
An
Introduction
to Visual
Basic
After studying Lesson C, you should
be able to:
• Set the properties of a timer control
• Delete a control from the form
• Delete code from the Code Editor window
• Code a timer control’s Tick event procedure
3
After studying Lesson C, you should
be able to:
• Prevent the user from sizing a form
• Remove and/or disable a form’s Minimize,
Maximize, and Close buttons
• Print an application’s code and interface
4
Using the Timer Tool
● Splash screens typically close automatically
○ They do not usually contain an Exit button
○ Use a timer control to close the splash screen
● Timer tool
○ Used to create a timer control
5
Using the Timer Tool (cont.)
● Timer control
○ Processes code at regular time intervals
○ Does not appear on the user interface at run
time
○ Important properties
6
Using the Timer Tool (cont.)
● Interval property
○ Specified in milliseconds
● Enabled property
○ Allows the timer to run if set to True
7
Using the Timer Tool (cont.)
● Tick event
○ Occurs each time a timer interval has elapsed
○ Condition: The timer must enabled
● Add code to the Tick event procedure
○ Code will be run when the Tick event occurs
8
Using the Timer Tool (cont.)
● Component tray
○ A special area below the form design area in
the IDE
○ Stores controls not visible in the user
interface at run time
9
10
Timer control placed in the component tray
FormBorderStyle Property of a Form
● FormBorderStyle Property
○ Determines the border style of a form
● Example settings:
○ Sizable: Allows the user to change a form’s size by dragging
its borders at run time
○ FixedSingle: A fixed, thin border line
○ None: No border
11
The MinimizeBox, MaximizeBox, and
ControlBox Properties
● MinimizeBox property
○ Determines whether the Minimize button
appears on the form’s title bar
● MaximizeBox property
○ Determines whether the Maximize button
appears on the form’s title bar
12
● ControlBox property
○ Determines if the title bar elements appear on
the form
● Splash screens typically do not contain a title bar
○ To remove a title bar, delete the contents of
the form’s Text property
13
14
Lesson C, Summary
● The timer control processes code at specified
intervals.
● A form’s MinimizeBox and MaximizeBox
properties enable or disable the Minimize and
Maximize buttons on the form.
15
Lesson C, Summary (cont.)
● A form’s ControlBox property determines
whether the icon and control buttons appear in
the title bar.
● A form’s FormBorderStyle property controls
the appearance of the form’s border.
16
Thanks!
17
1 of 17

More Related Content

Similar to CHAPTER 1: Lesson C(20)

More from MLG College of Learning, Inc(20)

PC111.Lesson2PC111.Lesson2
PC111.Lesson2
MLG College of Learning, Inc15 views
PC111.Lesson1PC111.Lesson1
PC111.Lesson1
MLG College of Learning, Inc22 views
PC111-lesson1.pptxPC111-lesson1.pptx
PC111-lesson1.pptx
MLG College of Learning, Inc7 views
PC LEESOON 6.pptxPC LEESOON 6.pptx
PC LEESOON 6.pptx
MLG College of Learning, Inc179 views
PC 106 PPT-09.pptxPC 106 PPT-09.pptx
PC 106 PPT-09.pptx
MLG College of Learning, Inc249 views
PC 106 PPT-07PC 106 PPT-07
PC 106 PPT-07
MLG College of Learning, Inc231 views
PC 106 PPT-01PC 106 PPT-01
PC 106 PPT-01
MLG College of Learning, Inc57 views
PC 106 PPT-06PC 106 PPT-06
PC 106 PPT-06
MLG College of Learning, Inc156 views
PC 106 PPT-05PC 106 PPT-05
PC 106 PPT-05
MLG College of Learning, Inc299 views
PC 106 Slide 04PC 106 Slide 04
PC 106 Slide 04
MLG College of Learning, Inc212 views
PC 106 Slide no.02PC 106 Slide no.02
PC 106 Slide no.02
MLG College of Learning, Inc333 views
pc-106-slide-3pc-106-slide-3
pc-106-slide-3
MLG College of Learning, Inc256 views
PC 106 Slide 1.pptxPC 106 Slide 1.pptx
PC 106 Slide 1.pptx
MLG College of Learning, Inc264 views
Db2 characteristics of db msDb2 characteristics of db ms
Db2 characteristics of db ms
MLG College of Learning, Inc75 views
Db1 introductionDb1 introduction
Db1 introduction
MLG College of Learning, Inc369 views
Lesson 3.2Lesson 3.2
Lesson 3.2
MLG College of Learning, Inc172 views
Lesson 3.1Lesson 3.1
Lesson 3.1
MLG College of Learning, Inc137 views
Lesson 1.6Lesson 1.6
Lesson 1.6
MLG College of Learning, Inc120 views
Lesson 3.2Lesson 3.2
Lesson 3.2
MLG College of Learning, Inc164 views
Lesson 3Lesson 3
Lesson 3
MLG College of Learning, Inc336 views

Recently uploaded(20)

Nico Baumbach IMR Media ComponentNico Baumbach IMR Media Component
Nico Baumbach IMR Media Component
InMediaRes1186 views
NS3 Unit 2 Life processes of animals.pptxNS3 Unit 2 Life processes of animals.pptx
NS3 Unit 2 Life processes of animals.pptx
manuelaromero201389 views
SIMPLE PRESENT TENSE_new.pptxSIMPLE PRESENT TENSE_new.pptx
SIMPLE PRESENT TENSE_new.pptx
nisrinamadani2146 views
Psychology KS5Psychology KS5
Psychology KS5
WestHatch53 views
BYSC infopack.pdfBYSC infopack.pdf
BYSC infopack.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego144 views
STERILITY TEST.pptxSTERILITY TEST.pptx
STERILITY TEST.pptx
Anupkumar Sharma102 views
Drama KS5 BreakdownDrama KS5 Breakdown
Drama KS5 Breakdown
WestHatch50 views
Dance KS5 BreakdownDance KS5 Breakdown
Dance KS5 Breakdown
WestHatch52 views
Industry4wrd.pptxIndustry4wrd.pptx
Industry4wrd.pptx
BC Chew153 views
ICANNICANN
ICANN
RajaulKarim2057 views
discussion post.pdfdiscussion post.pdf
discussion post.pdf
jessemercerail70 views
Universe revised.pdfUniverse revised.pdf
Universe revised.pdf
DrHafizKosar84 views
ICS3211_lecture 08_2023.pdfICS3211_lecture 08_2023.pdf
ICS3211_lecture 08_2023.pdf
Vanessa Camilleri68 views
GSoC 2024GSoC 2024
GSoC 2024
DeveloperStudentClub1049 views
Gopal Chakraborty Memorial Quiz 2.0 Prelims.pptxGopal Chakraborty Memorial Quiz 2.0 Prelims.pptx
Gopal Chakraborty Memorial Quiz 2.0 Prelims.pptx
Debapriya Chakraborty221 views
CWP_23995_2013_17_11_2023_FINAL_ORDER.pdfCWP_23995_2013_17_11_2023_FINAL_ORDER.pdf
CWP_23995_2013_17_11_2023_FINAL_ORDER.pdf
SukhwinderSingh895865467 views

CHAPTER 1: Lesson C

  • 1. Hello! I am Ma. Wennilou Porazo Instructor 1
  • 3. After studying Lesson C, you should be able to: • Set the properties of a timer control • Delete a control from the form • Delete code from the Code Editor window • Code a timer control’s Tick event procedure 3
  • 4. After studying Lesson C, you should be able to: • Prevent the user from sizing a form • Remove and/or disable a form’s Minimize, Maximize, and Close buttons • Print an application’s code and interface 4
  • 5. Using the Timer Tool ● Splash screens typically close automatically ○ They do not usually contain an Exit button ○ Use a timer control to close the splash screen ● Timer tool ○ Used to create a timer control 5
  • 6. Using the Timer Tool (cont.) ● Timer control ○ Processes code at regular time intervals ○ Does not appear on the user interface at run time ○ Important properties 6
  • 7. Using the Timer Tool (cont.) ● Interval property ○ Specified in milliseconds ● Enabled property ○ Allows the timer to run if set to True 7
  • 8. Using the Timer Tool (cont.) ● Tick event ○ Occurs each time a timer interval has elapsed ○ Condition: The timer must enabled ● Add code to the Tick event procedure ○ Code will be run when the Tick event occurs 8
  • 9. Using the Timer Tool (cont.) ● Component tray ○ A special area below the form design area in the IDE ○ Stores controls not visible in the user interface at run time 9
  • 10. 10 Timer control placed in the component tray
  • 11. FormBorderStyle Property of a Form ● FormBorderStyle Property ○ Determines the border style of a form ● Example settings: ○ Sizable: Allows the user to change a form’s size by dragging its borders at run time ○ FixedSingle: A fixed, thin border line ○ None: No border 11
  • 12. The MinimizeBox, MaximizeBox, and ControlBox Properties ● MinimizeBox property ○ Determines whether the Minimize button appears on the form’s title bar ● MaximizeBox property ○ Determines whether the Maximize button appears on the form’s title bar 12
  • 13. ● ControlBox property ○ Determines if the title bar elements appear on the form ● Splash screens typically do not contain a title bar ○ To remove a title bar, delete the contents of the form’s Text property 13
  • 14. 14
  • 15. Lesson C, Summary ● The timer control processes code at specified intervals. ● A form’s MinimizeBox and MaximizeBox properties enable or disable the Minimize and Maximize buttons on the form. 15
  • 16. Lesson C, Summary (cont.) ● A form’s ControlBox property determines whether the icon and control buttons appear in the title bar. ● A form’s FormBorderStyle property controls the appearance of the form’s border. 16