Chapter11 Slides - Chapter 11: Events and M ore Controls...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Click to edit Master subtitle style Opportunity Chapter 11: Events and More Controls MIS 304: Introduction to Problem Solving and Programming
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
You will learn how to… Use color dialog box Use font dialog box Display Splash Screen Display About Form
Background image of page 2
Focus Event Focus method gives the focus to a control Focus - method that gives the focus to a control; a control with the Focus accepts input from the user usually in the form of typing or clicks txtFirstName.Focus()
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Color Dialog ColorDialog - gives the user the power to set the color of a foreground or background Use dlgColor for the name of a ColorDialog Sits in the component tray Works just like other dialogs
Background image of page 4
Color Dialog Box
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Code For Color Dialog Sets the default color in the color dialog Opens the dialog User selects a color and clicks OK dlgColor.Color property stores the selected color Last line sets the text color of the Label to that color dlgColor.Color = lblDemo.ForeColor dlgColor.ShowDialog() lblDemo.ForeColor = dlgColor.Color
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 18

Chapter11 Slides - Chapter 11: Events and M ore Controls...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online