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)

Cad cam lab 2016 2017Cad cam lab 2016 2017
Cad cam lab 2016 2017
mohammed faizal•499 views
User exit trainingUser exit training
User exit training
Jen Ringel•11.2K views
Vb6.0 introVb6.0 intro
Vb6.0 intro
JOSEPHINEA6•207 views
Introduction to CADIntroduction to CAD
Introduction to CAD
syar2604•908 views
Oracle forms 6_i__1_Oracle forms 6_i__1_
Oracle forms 6_i__1_
shashi.vaichal•3K views
Oracle Forms: create debug triggersOracle Forms: create debug triggers
Oracle Forms: create debug triggers
Sekhar Byna•3.3K views
Reminder Application by Qt and C++Reminder Application by Qt and C++
Reminder Application by Qt and C++
Sumaia Alavi•1.5K views
CHAPTER 1 - Introduction to AutoCAD.pptCHAPTER 1 - Introduction to AutoCAD.ppt
CHAPTER 1 - Introduction to AutoCAD.ppt
Muhammad Taufik•44 views
Introduction to CATIA (KEY) - CAD/CAMIntroduction to CATIA (KEY) - CAD/CAM
Introduction to CATIA (KEY) - CAD/CAM
Sisubalan Selvan•659 views
Field Service Management in Odoo 13Field Service Management in Odoo 13
Field Service Management in Odoo 13
Celine George•420 views
CHAPTER 1: Lesson ACHAPTER 1: Lesson A
CHAPTER 1: Lesson A
MLG College of Learning, Inc•145 views

More from MLG College of Learning, Inc

More from MLG College of Learning, Inc(20)

PC111.Lesson2PC111.Lesson2
PC111.Lesson2
MLG College of Learning, Inc•15 views
PC111.Lesson1PC111.Lesson1
PC111.Lesson1
MLG College of Learning, Inc•22 views
PC111-lesson1.pptxPC111-lesson1.pptx
PC111-lesson1.pptx
MLG College of Learning, Inc•7 views
PC LEESOON 6.pptxPC LEESOON 6.pptx
PC LEESOON 6.pptx
MLG College of Learning, Inc•179 views
PC 106 PPT-09.pptxPC 106 PPT-09.pptx
PC 106 PPT-09.pptx
MLG College of Learning, Inc•249 views
PC 106 PPT-07PC 106 PPT-07
PC 106 PPT-07
MLG College of Learning, Inc•231 views
PC 106 PPT-01PC 106 PPT-01
PC 106 PPT-01
MLG College of Learning, Inc•57 views
PC 106 PPT-06PC 106 PPT-06
PC 106 PPT-06
MLG College of Learning, Inc•156 views
PC 106 PPT-05PC 106 PPT-05
PC 106 PPT-05
MLG College of Learning, Inc•299 views
PC 106 Slide 04PC 106 Slide 04
PC 106 Slide 04
MLG College of Learning, Inc•212 views
PC 106 Slide no.02PC 106 Slide no.02
PC 106 Slide no.02
MLG College of Learning, Inc•333 views
pc-106-slide-3pc-106-slide-3
pc-106-slide-3
MLG College of Learning, Inc•256 views
PC 106 Slide 1.pptxPC 106 Slide 1.pptx
PC 106 Slide 1.pptx
MLG College of Learning, Inc•264 views
Db2 characteristics of db msDb2 characteristics of db ms
Db2 characteristics of db ms
MLG College of Learning, Inc•75 views
Db1 introductionDb1 introduction
Db1 introduction
MLG College of Learning, Inc•369 views
Lesson 3.2Lesson 3.2
Lesson 3.2
MLG College of Learning, Inc•172 views
Lesson 3.1Lesson 3.1
Lesson 3.1
MLG College of Learning, Inc•137 views
Lesson 1.6Lesson 1.6
Lesson 1.6
MLG College of Learning, Inc•120 views
Lesson 3.2Lesson 3.2
Lesson 3.2
MLG College of Learning, Inc•164 views
Lesson 3Lesson 3
Lesson 3
MLG College of Learning, Inc•336 views

Recently uploaded(20)

Nico Baumbach IMR Media ComponentNico Baumbach IMR Media Component
Nico Baumbach IMR Media Component
InMediaRes1•186 views
NS3 Unit 2 Life processes of animals.pptxNS3 Unit 2 Life processes of animals.pptx
NS3 Unit 2 Life processes of animals.pptx
manuelaromero2013•89 views
SIMPLE PRESENT TENSE_new.pptxSIMPLE PRESENT TENSE_new.pptx
SIMPLE PRESENT TENSE_new.pptx
nisrinamadani2•146 views
Use of Probiotics in Aquaculture.pptxUse of Probiotics in Aquaculture.pptx
Use of Probiotics in Aquaculture.pptx
AKSHAY MANDAL•69 views
Psychology KS5Psychology KS5
Psychology KS5
WestHatch•53 views
BYSC infopack.pdfBYSC infopack.pdf
BYSC infopack.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego•144 views
STERILITY TEST.pptxSTERILITY TEST.pptx
STERILITY TEST.pptx
Anupkumar Sharma•102 views
Drama KS5 BreakdownDrama KS5 Breakdown
Drama KS5 Breakdown
WestHatch•50 views
Dance KS5 BreakdownDance KS5 Breakdown
Dance KS5 Breakdown
WestHatch•52 views
Industry4wrd.pptxIndustry4wrd.pptx
Industry4wrd.pptx
BC Chew•153 views
ICANNICANN
ICANN
RajaulKarim20•57 views
discussion post.pdfdiscussion post.pdf
discussion post.pdf
jessemercerail•70 views
Universe revised.pdfUniverse revised.pdf
Universe revised.pdf
DrHafizKosar•84 views
ICS3211_lecture 08_2023.pdfICS3211_lecture 08_2023.pdf
ICS3211_lecture 08_2023.pdf
Vanessa Camilleri•68 views
GSoC 2024GSoC 2024
GSoC 2024
DeveloperStudentClub10•49 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 Chakraborty•221 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
SukhwinderSingh895865•467 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