SlideShare une entreprise Scribd logo
1  sur  47
aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf
Graphics, Animation, Sound, and Drag-and-Drop Chapter 13 McGraw-Hill © 2006 The McGraw-Hill Companies, Inc. All rights reserved.
Objectives  (1 of 2) ,[object Object],[object Object],[object Object],[object Object],[object Object]
Objectives  (2 of 2) ,[object Object],[object Object],[object Object],[object Object],[object Object]
Graphics in Windows and the Web ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The Graphics Environment ,[object Object],[object Object],[object Object]
Steps for Drawing Graphics ,[object Object],[object Object],[object Object]
The Paint Event Procedure ,[object Object],[object Object],[object Object],[object Object],Private Sub Form1_Paint(ByVal sender As Object, _  ByVal  e  As System.Windows . Forms . PaintEventArgs) _  Handles Me.Paint ' Create a graphics object. Dim gr As  Graphics  =  e .Graphics
Pen and Brush Objects  (1 of 2) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Pen and Brush Objects   (2 pf 2) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Graphic Shapes Drawn with Pen and Brush Objects   Drawn with Pen Drawn with Brush
[object Object],[object Object],The Pen Class Pen( Color ) Pen( Color, Width ) Dim redPen As New Pen(Color.Red) Dim widePen As New Pen(Color.Black, 10)
[object Object],[object Object],The SolidBrush Class SolidBrush( Color ) Dim blueBrush As New SolidBrush(Color.Blue)  There are other Brush Classes: TextureBrush, HatchBrush, LinearGradientBrush, PathGradientBrush. See Help for more information.
The Coordinate System  (1 of 2) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The Coordinate System  (2 of 2) Form PictureBox 0,0 Position On Form 0,0 Position On PictureBox
The Point Structure ,[object Object],[object Object],[object Object],[object Object],Dim myStartingPoint As New  Point (20, 10)
The Size Structure ,[object Object],[object Object],[object Object],[object Object],[object Object],Dim myPictureSize As New  Size (100, 20)  ‘ Width is 100, height is 20
The Rectangle Structure ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Dim myOtherRectangle As New Rectangle(xInteger, yInteger, _ widthInteger, heightInteger) Dim myOtherRectangle As New Rectangle(myStartingPoint, myPictureSize
Graphics Methods ,[object Object],[object Object],[object Object],[object Object]
Graphics Methods – General Form DrawLine ( Pen, x1Integer, y1Integer, x2Integer, y2Integer )  DrawLine ( Pen, Point1, Point2 ) DrawRectangle ( Pen, xInteger, yInteger, widthInteger, heightInteger ) DrawRectangle ( Pen, Rectangle ) FillRectangle ( Brush, xInteger, yInteger, widthInteger, heightInteger ) FillRectangle ( Brush, Rectangle ) FillEllipse ( Brush, xInteger, yInteger, widthInteger, heightInteger ) FillEllipse ( Brush, Rectangle )
Graphics Methods – Code Example Private Sub graphicsForm_Paint(ByVal sender As Object, _  ByVal  e  As System.Windows . Forms . PaintEventArgs) _  Handles MyBase.Paint Dim gr As  Graphics  =  e .Graphics   ' Create a graphics object. Dim redPen As New   Pen (Color . Red) gr . DrawRectangle(redPen, 10, 10, 30, 30)  ' Draw a red rectangle. gr . DrawLine(redPen, 50, 0, 50, 300)   ' Draw a red line. Dim blueBrush As New  SolidBrush (Color . Blue) gr . FillEllipse(blueBrush, 100, 100, 50, 50)   ' Draw a blue filled circle. Dim widePen As New   Pen (Color . Blue, 15) gr . DrawLine(widePen, 300, 0, 300, 300)   ' Draw a fat blue line. End Sub
Selected Methods from the Graphics Class ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],See Help for information for all draw and fill methods
Random Numbers ,[object Object],[object Object],[object Object],[object Object]
The Random.Next Method ,[object Object],[object Object],' Any positive integer number. Object .Next( ) ' A positive integer up to the value specified. Object .Next( maximumValueInteger) ' A positive integer in the range specified. Object .Next( minimumValueInteger, maximumValueInteger) ' Return an integer in the range 0 – 10. randomInteger = generateRandom.Next(10) ' Return an integer in the range 0 to the width of the form. randomNumberInteger = generateRandom.Next(1, Me.Width)
Simple Animation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Displaying an Animated Graphic ,[object Object],[object Object]
Controlling Pictures at Run Time ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Switching Images ,[object Object],[object Object],[object Object]
Creating Animation Each of the  graphics is placed into the upper picture box when the user clicks the Change button
Moving a Picture ,[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],SetBounds Method SetBounds ( xInteger, yInteger, widthInteger, heightInteger ) Me.planePictureBox. SetBounds (xInteger ,  yInteger, planeWidth, planeHeight) Me.enginePictureBox. SetBounds (xInteger, yInteger, widthInteger, heightInteger)
[object Object],[object Object],[object Object],The Timer Component  (1 of 2)
The Timer Component   (2 of 2) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The Scroll Bar Controls ,[object Object],[object Object],[object Object],[object Object],[object Object]
Scroll Bar Properties  (1 of 3) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Scroll Bar Properties  (2 of 3) Gray Area ( LargeChange property ) Scroll Box ( Value property ) Scroll Arrow ( SmallChange property ) Maximum value ( Maximum property ) Minimum value ( Minimum property )
Scroll Bar Properties   (3 of 3) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Scroll Bar Events ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The SoundPlayer Component ,[object Object],[object Object],[object Object],[object Object]
Adding Sounds Files ,[object Object],[object Object]
A Sound-Playing Program ,[object Object],[object Object]
Drag-and-Drop Programming  (1 of 2) ,[object Object],[object Object],[object Object],[object Object]
Drag-and-Drop Programming  (2 of 2) The Source object is dragged to the Target object in a drag-and-drop operation
The Source Object ,[object Object],[object Object],[object Object],[object Object],ObjectName.DoDragDrop(DataToDrag, DesiredDragDropEffect)
The Target Object ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The DragEnter Event ,[object Object],[object Object]
The DragDrop Event ,[object Object],[object Object],[object Object],[object Object]

Contenu connexe

Tendances

Java applet handouts
Java applet handoutsJava applet handouts
Java applet handoutsiamkim
 
Complete Tutorial for 3d Text on Photos
Complete Tutorial for 3d Text on PhotosComplete Tutorial for 3d Text on Photos
Complete Tutorial for 3d Text on PhotosPj Dhanoa
 
Adobe photoshop cs2 shortcut keys
Adobe photoshop cs2 shortcut keysAdobe photoshop cs2 shortcut keys
Adobe photoshop cs2 shortcut keysMayur Donga
 
Shortcuts para Photoshop CS2
Shortcuts para Photoshop CS2Shortcuts para Photoshop CS2
Shortcuts para Photoshop CS2templarx2
 
Autocad commands-1
Autocad commands-1Autocad commands-1
Autocad commands-1Bhuban Fomb
 
adobe illustrator for beginner
adobe illustrator for beginneradobe illustrator for beginner
adobe illustrator for beginnernabilah rahim
 
BIT Multimedia and Animation
BIT Multimedia and AnimationBIT Multimedia and Animation
BIT Multimedia and AnimationDhruvi Sharma
 
Learn Creative Coding: Begin Programming with the Processing Language
Learn Creative Coding: Begin Programming with the Processing LanguageLearn Creative Coding: Begin Programming with the Processing Language
Learn Creative Coding: Begin Programming with the Processing Languageshelfrog
 
Learn Creative Coding: Begin Programming with the Processing Language
Learn Creative Coding: Begin Programming with the Processing LanguageLearn Creative Coding: Begin Programming with the Processing Language
Learn Creative Coding: Begin Programming with the Processing LanguageW M Harris
 
Introduction to 3D Animation
Introduction to 3D AnimationIntroduction to 3D Animation
Introduction to 3D AnimationChetal Gazdar
 
DUSPviz 2012 Illustrator
DUSPviz 2012 IllustratorDUSPviz 2012 Illustrator
DUSPviz 2012 IllustratorDUSPviz
 
Introduction to autocad 2014
Introduction to autocad 2014Introduction to autocad 2014
Introduction to autocad 2014Prabhat Sharma
 
Searching Images by Color Using Solr
Searching Images by Color Using SolrSearching Images by Color Using Solr
Searching Images by Color Using SolrChris Becker
 
Searching Images by Color: Presented by Chris Becker, Shutterstock
Searching Images by Color: Presented by Chris Becker, ShutterstockSearching Images by Color: Presented by Chris Becker, Shutterstock
Searching Images by Color: Presented by Chris Becker, ShutterstockLucidworks
 

Tendances (20)

Java applet handouts
Java applet handoutsJava applet handouts
Java applet handouts
 
Complete Tutorial for 3d Text on Photos
Complete Tutorial for 3d Text on PhotosComplete Tutorial for 3d Text on Photos
Complete Tutorial for 3d Text on Photos
 
Adobe photoshop cs2 shortcut keys
Adobe photoshop cs2 shortcut keysAdobe photoshop cs2 shortcut keys
Adobe photoshop cs2 shortcut keys
 
Shortcuts para Photoshop CS2
Shortcuts para Photoshop CS2Shortcuts para Photoshop CS2
Shortcuts para Photoshop CS2
 
Autocad commands-1
Autocad commands-1Autocad commands-1
Autocad commands-1
 
adobe illustrator for beginner
adobe illustrator for beginneradobe illustrator for beginner
adobe illustrator for beginner
 
BIT Multimedia and Animation
BIT Multimedia and AnimationBIT Multimedia and Animation
BIT Multimedia and Animation
 
Delphi L06 GDI Drawing
Delphi L06 GDI DrawingDelphi L06 GDI Drawing
Delphi L06 GDI Drawing
 
Learn Creative Coding: Begin Programming with the Processing Language
Learn Creative Coding: Begin Programming with the Processing LanguageLearn Creative Coding: Begin Programming with the Processing Language
Learn Creative Coding: Begin Programming with the Processing Language
 
Learn Creative Coding: Begin Programming with the Processing Language
Learn Creative Coding: Begin Programming with the Processing LanguageLearn Creative Coding: Begin Programming with the Processing Language
Learn Creative Coding: Begin Programming with the Processing Language
 
Introduction to 3D Animation
Introduction to 3D AnimationIntroduction to 3D Animation
Introduction to 3D Animation
 
Flash Tutorial
Flash TutorialFlash Tutorial
Flash Tutorial
 
DUSPviz 2012 Illustrator
DUSPviz 2012 IllustratorDUSPviz 2012 Illustrator
DUSPviz 2012 Illustrator
 
Introduction to autocad 2014
Introduction to autocad 2014Introduction to autocad 2014
Introduction to autocad 2014
 
Searching Images by Color Using Solr
Searching Images by Color Using SolrSearching Images by Color Using Solr
Searching Images by Color Using Solr
 
Searching Images by Color: Presented by Chris Becker, Shutterstock
Searching Images by Color: Presented by Chris Becker, ShutterstockSearching Images by Color: Presented by Chris Becker, Shutterstock
Searching Images by Color: Presented by Chris Becker, Shutterstock
 
HTML CANVAS
HTML CANVASHTML CANVAS
HTML CANVAS
 
Autocad
AutocadAutocad
Autocad
 
Photoshop cs5 shortcut_keys
Photoshop cs5 shortcut_keysPhotoshop cs5 shortcut_keys
Photoshop cs5 shortcut_keys
 
Maya
MayaMaya
Maya
 

En vedette

Presentation 20110918 split
Presentation 20110918   splitPresentation 20110918   split
Presentation 20110918 splitKuanhung Chen
 
The Wondrous Curse of Interoperability
The Wondrous Curse of InteroperabilityThe Wondrous Curse of Interoperability
The Wondrous Curse of InteroperabilitySteve Loughran
 
Presentation 20110918 after effect
Presentation 20110918   after effectPresentation 20110918   after effect
Presentation 20110918 after effectKuanhung Chen
 
C++ Windows Forms L09 - GDI P2
C++ Windows Forms L09 - GDI P2C++ Windows Forms L09 - GDI P2
C++ Windows Forms L09 - GDI P2Mohammad Shaker
 
MATH GRADE 10 LEARNER'S MODULE
MATH GRADE 10 LEARNER'S MODULEMATH GRADE 10 LEARNER'S MODULE
MATH GRADE 10 LEARNER'S MODULEPRINTDESK by Dan
 

En vedette (6)

Exceptional exceptions
Exceptional exceptionsExceptional exceptions
Exceptional exceptions
 
Presentation 20110918 split
Presentation 20110918   splitPresentation 20110918   split
Presentation 20110918 split
 
The Wondrous Curse of Interoperability
The Wondrous Curse of InteroperabilityThe Wondrous Curse of Interoperability
The Wondrous Curse of Interoperability
 
Presentation 20110918 after effect
Presentation 20110918   after effectPresentation 20110918   after effect
Presentation 20110918 after effect
 
C++ Windows Forms L09 - GDI P2
C++ Windows Forms L09 - GDI P2C++ Windows Forms L09 - GDI P2
C++ Windows Forms L09 - GDI P2
 
MATH GRADE 10 LEARNER'S MODULE
MATH GRADE 10 LEARNER'S MODULEMATH GRADE 10 LEARNER'S MODULE
MATH GRADE 10 LEARNER'S MODULE
 

Similaire à Chapter 13

C++ Windows Forms L08 - GDI P1
C++ Windows Forms L08 - GDI P1 C++ Windows Forms L08 - GDI P1
C++ Windows Forms L08 - GDI P1 Mohammad Shaker
 
On the tomcat drive in folder cosc210 you will find file named Paint.docx
On the tomcat drive in folder cosc210 you will find file named Paint.docxOn the tomcat drive in folder cosc210 you will find file named Paint.docx
On the tomcat drive in folder cosc210 you will find file named Paint.docxdunhamadell
 
Basic Graphics in Java
Basic Graphics in JavaBasic Graphics in Java
Basic Graphics in JavaPrakash Kumar
 
Unit-1 basics of computer graphics
Unit-1 basics of computer graphicsUnit-1 basics of computer graphics
Unit-1 basics of computer graphicsAmol Gaikwad
 
asmt7~$sc_210_-_assignment_7_fall_15.docasmt7cosc_210_-_as.docx
asmt7~$sc_210_-_assignment_7_fall_15.docasmt7cosc_210_-_as.docxasmt7~$sc_210_-_assignment_7_fall_15.docasmt7cosc_210_-_as.docx
asmt7~$sc_210_-_assignment_7_fall_15.docasmt7cosc_210_-_as.docxfredharris32
 
HTML5 Canvas - Basics.pptx
HTML5 Canvas - Basics.pptxHTML5 Canvas - Basics.pptx
HTML5 Canvas - Basics.pptxAhmadAbba6
 
Chapter v(drawing)
Chapter v(drawing)Chapter v(drawing)
Chapter v(drawing)Chhom Karath
 
ch03g-graphics.ppt
ch03g-graphics.pptch03g-graphics.ppt
ch03g-graphics.pptMahyuddin8
 
Sierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and Scala
Sierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and ScalaSierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and Scala
Sierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and ScalaPhilip Schwarz
 
S'il te plait, dessine moi une vue
S'il te plait, dessine moi une vueS'il te plait, dessine moi une vue
S'il te plait, dessine moi une vueFlorent Champigny
 
Interactive Mouse (Report On Processing)
Interactive Mouse (Report On Processing)Interactive Mouse (Report On Processing)
Interactive Mouse (Report On Processing)TongXu520
 
Html5 Canvas Drawing and Animation
Html5 Canvas Drawing and AnimationHtml5 Canvas Drawing and Animation
Html5 Canvas Drawing and AnimationMindfire Solutions
 

Similaire à Chapter 13 (20)

Scmad Chapter06
Scmad Chapter06Scmad Chapter06
Scmad Chapter06
 
C++ Windows Forms L08 - GDI P1
C++ Windows Forms L08 - GDI P1 C++ Windows Forms L08 - GDI P1
C++ Windows Forms L08 - GDI P1
 
On the tomcat drive in folder cosc210 you will find file named Paint.docx
On the tomcat drive in folder cosc210 you will find file named Paint.docxOn the tomcat drive in folder cosc210 you will find file named Paint.docx
On the tomcat drive in folder cosc210 you will find file named Paint.docx
 
Basic Graphics in Java
Basic Graphics in JavaBasic Graphics in Java
Basic Graphics in Java
 
canvas_1.pptx
canvas_1.pptxcanvas_1.pptx
canvas_1.pptx
 
Unit-1 basics of computer graphics
Unit-1 basics of computer graphicsUnit-1 basics of computer graphics
Unit-1 basics of computer graphics
 
asmt7~$sc_210_-_assignment_7_fall_15.docasmt7cosc_210_-_as.docx
asmt7~$sc_210_-_assignment_7_fall_15.docasmt7cosc_210_-_as.docxasmt7~$sc_210_-_assignment_7_fall_15.docasmt7cosc_210_-_as.docx
asmt7~$sc_210_-_assignment_7_fall_15.docasmt7cosc_210_-_as.docx
 
canvas.pptx
canvas.pptxcanvas.pptx
canvas.pptx
 
HTML5 Canvas - Basics.pptx
HTML5 Canvas - Basics.pptxHTML5 Canvas - Basics.pptx
HTML5 Canvas - Basics.pptx
 
Custom View
Custom ViewCustom View
Custom View
 
GeoGebra 10
GeoGebra 10GeoGebra 10
GeoGebra 10
 
Chapter v(drawing)
Chapter v(drawing)Chapter v(drawing)
Chapter v(drawing)
 
ch03g-graphics.ppt
ch03g-graphics.pptch03g-graphics.ppt
ch03g-graphics.ppt
 
Illustrator 9
Illustrator 9Illustrator 9
Illustrator 9
 
Intake 37 6
Intake 37 6Intake 37 6
Intake 37 6
 
Sierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and Scala
Sierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and ScalaSierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and Scala
Sierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and Scala
 
Windows and viewport
Windows and viewportWindows and viewport
Windows and viewport
 
S'il te plait, dessine moi une vue
S'il te plait, dessine moi une vueS'il te plait, dessine moi une vue
S'il te plait, dessine moi une vue
 
Interactive Mouse (Report On Processing)
Interactive Mouse (Report On Processing)Interactive Mouse (Report On Processing)
Interactive Mouse (Report On Processing)
 
Html5 Canvas Drawing and Animation
Html5 Canvas Drawing and AnimationHtml5 Canvas Drawing and Animation
Html5 Canvas Drawing and Animation
 

Plus de Terry Yoast

9781305078444 ppt ch12
9781305078444 ppt ch129781305078444 ppt ch12
9781305078444 ppt ch12Terry Yoast
 
9781305078444 ppt ch11
9781305078444 ppt ch119781305078444 ppt ch11
9781305078444 ppt ch11Terry Yoast
 
9781305078444 ppt ch10
9781305078444 ppt ch109781305078444 ppt ch10
9781305078444 ppt ch10Terry Yoast
 
9781305078444 ppt ch09
9781305078444 ppt ch099781305078444 ppt ch09
9781305078444 ppt ch09Terry Yoast
 
9781305078444 ppt ch08
9781305078444 ppt ch089781305078444 ppt ch08
9781305078444 ppt ch08Terry Yoast
 
9781305078444 ppt ch07
9781305078444 ppt ch079781305078444 ppt ch07
9781305078444 ppt ch07Terry Yoast
 
9781305078444 ppt ch06
9781305078444 ppt ch069781305078444 ppt ch06
9781305078444 ppt ch06Terry Yoast
 
9781305078444 ppt ch05
9781305078444 ppt ch059781305078444 ppt ch05
9781305078444 ppt ch05Terry Yoast
 
9781305078444 ppt ch04
9781305078444 ppt ch049781305078444 ppt ch04
9781305078444 ppt ch04Terry Yoast
 
9781305078444 ppt ch03
9781305078444 ppt ch039781305078444 ppt ch03
9781305078444 ppt ch03Terry Yoast
 
9781305078444 ppt ch02
9781305078444 ppt ch029781305078444 ppt ch02
9781305078444 ppt ch02Terry Yoast
 
9781305078444 ppt ch01
9781305078444 ppt ch019781305078444 ppt ch01
9781305078444 ppt ch01Terry Yoast
 
9781337102087 ppt ch13
9781337102087 ppt ch139781337102087 ppt ch13
9781337102087 ppt ch13Terry Yoast
 
9781337102087 ppt ch18
9781337102087 ppt ch189781337102087 ppt ch18
9781337102087 ppt ch18Terry Yoast
 
9781337102087 ppt ch17
9781337102087 ppt ch179781337102087 ppt ch17
9781337102087 ppt ch17Terry Yoast
 
9781337102087 ppt ch16
9781337102087 ppt ch169781337102087 ppt ch16
9781337102087 ppt ch16Terry Yoast
 
9781337102087 ppt ch15
9781337102087 ppt ch159781337102087 ppt ch15
9781337102087 ppt ch15Terry Yoast
 
9781337102087 ppt ch14
9781337102087 ppt ch149781337102087 ppt ch14
9781337102087 ppt ch14Terry Yoast
 
9781337102087 ppt ch12
9781337102087 ppt ch129781337102087 ppt ch12
9781337102087 ppt ch12Terry Yoast
 
9781337102087 ppt ch11
9781337102087 ppt ch119781337102087 ppt ch11
9781337102087 ppt ch11Terry Yoast
 

Plus de Terry Yoast (20)

9781305078444 ppt ch12
9781305078444 ppt ch129781305078444 ppt ch12
9781305078444 ppt ch12
 
9781305078444 ppt ch11
9781305078444 ppt ch119781305078444 ppt ch11
9781305078444 ppt ch11
 
9781305078444 ppt ch10
9781305078444 ppt ch109781305078444 ppt ch10
9781305078444 ppt ch10
 
9781305078444 ppt ch09
9781305078444 ppt ch099781305078444 ppt ch09
9781305078444 ppt ch09
 
9781305078444 ppt ch08
9781305078444 ppt ch089781305078444 ppt ch08
9781305078444 ppt ch08
 
9781305078444 ppt ch07
9781305078444 ppt ch079781305078444 ppt ch07
9781305078444 ppt ch07
 
9781305078444 ppt ch06
9781305078444 ppt ch069781305078444 ppt ch06
9781305078444 ppt ch06
 
9781305078444 ppt ch05
9781305078444 ppt ch059781305078444 ppt ch05
9781305078444 ppt ch05
 
9781305078444 ppt ch04
9781305078444 ppt ch049781305078444 ppt ch04
9781305078444 ppt ch04
 
9781305078444 ppt ch03
9781305078444 ppt ch039781305078444 ppt ch03
9781305078444 ppt ch03
 
9781305078444 ppt ch02
9781305078444 ppt ch029781305078444 ppt ch02
9781305078444 ppt ch02
 
9781305078444 ppt ch01
9781305078444 ppt ch019781305078444 ppt ch01
9781305078444 ppt ch01
 
9781337102087 ppt ch13
9781337102087 ppt ch139781337102087 ppt ch13
9781337102087 ppt ch13
 
9781337102087 ppt ch18
9781337102087 ppt ch189781337102087 ppt ch18
9781337102087 ppt ch18
 
9781337102087 ppt ch17
9781337102087 ppt ch179781337102087 ppt ch17
9781337102087 ppt ch17
 
9781337102087 ppt ch16
9781337102087 ppt ch169781337102087 ppt ch16
9781337102087 ppt ch16
 
9781337102087 ppt ch15
9781337102087 ppt ch159781337102087 ppt ch15
9781337102087 ppt ch15
 
9781337102087 ppt ch14
9781337102087 ppt ch149781337102087 ppt ch14
9781337102087 ppt ch14
 
9781337102087 ppt ch12
9781337102087 ppt ch129781337102087 ppt ch12
9781337102087 ppt ch12
 
9781337102087 ppt ch11
9781337102087 ppt ch119781337102087 ppt ch11
9781337102087 ppt ch11
 

Dernier

Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 
Millenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptxMillenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptxJanEmmanBrigoli
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptshraddhaparab530
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataBabyAnnMotar
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 

Dernier (20)

Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 
Millenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptxMillenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.ppt
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped data
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 

Chapter 13

  • 1. aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf
  • 2. Graphics, Animation, Sound, and Drag-and-Drop Chapter 13 McGraw-Hill © 2006 The McGraw-Hill Companies, Inc. All rights reserved.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11. Graphic Shapes Drawn with Pen and Brush Objects Drawn with Pen Drawn with Brush
  • 12.
  • 13.
  • 14.
  • 15. The Coordinate System (2 of 2) Form PictureBox 0,0 Position On Form 0,0 Position On PictureBox
  • 16.
  • 17.
  • 18.
  • 19.
  • 20. Graphics Methods – General Form DrawLine ( Pen, x1Integer, y1Integer, x2Integer, y2Integer ) DrawLine ( Pen, Point1, Point2 ) DrawRectangle ( Pen, xInteger, yInteger, widthInteger, heightInteger ) DrawRectangle ( Pen, Rectangle ) FillRectangle ( Brush, xInteger, yInteger, widthInteger, heightInteger ) FillRectangle ( Brush, Rectangle ) FillEllipse ( Brush, xInteger, yInteger, widthInteger, heightInteger ) FillEllipse ( Brush, Rectangle )
  • 21. Graphics Methods – Code Example Private Sub graphicsForm_Paint(ByVal sender As Object, _ ByVal e As System.Windows . Forms . PaintEventArgs) _ Handles MyBase.Paint Dim gr As Graphics = e .Graphics ' Create a graphics object. Dim redPen As New Pen (Color . Red) gr . DrawRectangle(redPen, 10, 10, 30, 30) ' Draw a red rectangle. gr . DrawLine(redPen, 50, 0, 50, 300) ' Draw a red line. Dim blueBrush As New SolidBrush (Color . Blue) gr . FillEllipse(blueBrush, 100, 100, 50, 50) ' Draw a blue filled circle. Dim widePen As New Pen (Color . Blue, 15) gr . DrawLine(widePen, 300, 0, 300, 300) ' Draw a fat blue line. End Sub
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29. Creating Animation Each of the graphics is placed into the upper picture box when the user clicks the Change button
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36. Scroll Bar Properties (2 of 3) Gray Area ( LargeChange property ) Scroll Box ( Value property ) Scroll Arrow ( SmallChange property ) Maximum value ( Maximum property ) Minimum value ( Minimum property )
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43. Drag-and-Drop Programming (2 of 2) The Source object is dragged to the Target object in a drag-and-drop operation
  • 44.
  • 45.
  • 46.
  • 47.

Notes de l'éditeur

  1. Brief description on how to navigate within this presentation (ppt) The first time a Key Term from the chapter is used in the ppt it will display in blue Gold colored text boxes display coding examples Slides will be numbered (# of #) when multiple slides on same topic (Slide title) Speaker notes are included where appropriate for slides (*)Denotes either a comment for page reference to textbook or slide reference in ppt
  2. GDI+ is more advanced and an improvement over the previous Graphics Device Interface (GDI) used in previous version of VB Being device dependent, the programmer doesn’t have to be concerned about the physical characteristics of the output device
  3. *The next few slides describe the steps in more detail
  4. A graphics object can also be created by calling the CreateGraphics method of a form or control—it is used when wanting to display a graphic from a procedure other than the Paint event Lines and shapes are drawn on forms and controls by drawing on a Graphics object
  5. *The Pen/Brush properties are described on the next slide
  6. *The next slide displays a graphic shape created by drawing with Pen and Brush objects
  7. *The next slides show examples of code for Pen and Brush classes
  8. There may be times that several different pens are used—for each different color or line width another Pen object can be created or redefine an already dimensioned Pen variable
  9. Use the Color constants to assign a color to Brush objects
  10. *The next slide displays the coordinates for graphic
  11. The coordinates for graphics begin with 0,0 in the upper-left corner of a form or container
  12. An example of a Point in the design of a form can easily be seen-examine the Location property of any control; the Location is assigned a Point object with x and y properties
  13. Examine the design of any form to see an example of a Size structure-each of the controls has a Size property which has width and height properties
  14. The first example defines a rectangular region, specified by its upper left corner and its size The second example using the overloaded constructor declare a new Rectangle by specifying its location in x and y coordinates and its width and height Point, Size, and rectangle structures can be created for single-precision floating-point values—specify the PointF, SizeF, and RectangleF structures
  15. *The next slide displays the Graphics Method-General Forms
  16. Rather than declaring a pen or brush-type Pens.color or Brushes.color directly in the Graphics method; the pen or brush object must be declared if wanting to change the width
  17. The code example draws the outline of rectangle in red using the DrawRectangle method (key term) and draws a line with the DrawLine method ; (keyterm) the FillEllipse method (key term) is used to draw a filled circle
  18. A Random object is popular for use in games, as well as problems in probability and queuing theory
  19. *Refer to textbook p. 509 for an example of output produced by Chapter13RandomNumbers example program—the program draws the figure and generates random snowflakes in the form’s Pain event handler
  20. You can use a control’s SetBounds method to move it to a new location and/or to change its size *The next slide displays examples of the SetBounds Method General Form and usage examples
  21. Generally events occur when the user takes an action-using the Timer component and its Tick event When a timer is added, it goes into the component tray-the tool for the timer is represented by the little stopwatch in the toolbox
  22. *Each of these properties has a default value-see Table 13.2 p.516 in textbook
  23. It’s fun to add sound to an application—computers play sounds as they are turned on and off or receiving email
  24. If it is desired to have a sound play as the application opens, set the SoundLocation property of a SoundPlayer component to the desired file at design time
  25. *The Source and Target Objects are described on the following slides