Chapter 24 slides - Chapter 24 How to enhance the user...

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

View Full Document Right Arrow Icon
Murach’s Visual Basic 2008, C24 Slide 1 Chapter 24 How to enhance the user interface
Background image of page 1

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

View Full DocumentRight Arrow Icon
Murach’s Visual Basic 2008, C24 Slide 2 Objectives Applied Use the Tab control to organize an application. Use a multiple-document interface for an application. Add menus, toolbars, status bars, and help information to your applications. Use the Main procedure in a module to start an application. Knowledge Distinguish between a single-document and a multiple-document interface.
Background image of page 2
Murach’s Visual Basic 2008, C24 Slide 3 Single-document interface (SDI)
Background image of page 3

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

View Full DocumentRight Arrow Icon
Murach’s Visual Basic 2008, C24 Slide 4 Multiple-document interface (MDI)
Background image of page 4
Murach’s Visual Basic 2008, C24 Slide 5 A startup form for the Financial Calculations application
Background image of page 5

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

View Full DocumentRight Arrow Icon
Murach’s Visual Basic 2008, C24 Slide 6 Code that displays a new instance of a form Private Sub btnFutureValue_Click( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles btnFutureValue.Click Dim futureValueForm As New frmFutureValue() futureValueForm.Show() End Sub Code that closes the current instance of a form Private Sub btnClose_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles btnClose.Click Me.Close() End Sub Code in a startup form that closes all forms and ends the application Private Sub btnExit_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles btnExit.Click Me.Close() End Sub
Background image of page 6
Murach’s Visual Basic 2008, C24 Slide 7 A form that uses a Tab control with two tabs
Background image of page 7

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

View Full DocumentRight Arrow Icon
Murach’s Visual Basic 2008, C24 Slide 8 Code that uses the SelectedIndex property of the Tab control Private Sub btnCalculate_Click( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles btnCalculate.Click If tabCalculations.SelectedIndex = 0 Then Me.DisplayFutureValue() ElseIf tabCalculations.SelectedIndex = 1 Then Me.DisplayDepreciation() End If End Sub
Background image of page 8
Murach’s Visual Basic 2008, C24 Slide 9 Code that uses the SelectedIndexChanged event of the Tab control Private Sub tabCalculations_SelectedIndexChanged( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles tabCalculations.SelectedIndexChanged If tabCalculations.SelectedIndex = 0 Then txtMonthlyInvestment.Select() ElseIf tabCalculations.SelectedIndex = 1 Then txtInitialCost.Select() End If End Sub
Background image of page 9

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

View Full DocumentRight Arrow Icon
Murach’s Visual Basic 2008, C24 Slide 10 The beginning of the menu for the Future Value application
Background image of page 10
Murach’s Visual Basic 2008, C24 Slide 11 The complete Action menu
Background image of page 11

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

View Full DocumentRight Arrow Icon
Image of page 12
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 35

Chapter 24 slides - Chapter 24 How to enhance the user...

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

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