home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmRace
- Caption = "Horse Race"
- ClientHeight = 2085
- ClientLeft = 2055
- ClientTop = 1740
- ClientWidth = 2565
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 2085
- ScaleWidth = 2565
- Begin VB.CommandButton cmdDescribe
- Caption = "Describe Position"
- Height = 495
- Left = 120
- TabIndex = 3
- Top = 720
- Width = 2295
- End
- Begin VB.TextBox txtPosition
- Height = 285
- Left = 1920
- TabIndex = 1
- Top = 240
- Width = 495
- End
- Begin VB.PictureBox picOutcome
- Height = 495
- Left = 120
- ScaleHeight = 435
- ScaleWidth = 2235
- TabIndex = 0
- Top = 1440
- Width = 2295
- End
- Begin VB.Label lblPosition
- Caption = "Finishing position (1, 2, 3, ...)"
- Height = 495
- Left = 120
- TabIndex = 2
- Top = 120
- Width = 1575
- End
- Attribute VB_Name = "frmRace"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdDescribe_Click()
- Dim position As Integer
- 'Describe finishing positions in a horse race
- position = Val(txtPosition.Text)
- picOutcome.Cls
- Select Case position
- Case 1 To 3
- picOutcome.Print "In the money."
- picOutcome.Print "Congratulations"
- Case Is > 3
- picOutcome.Print "Not in the money."
- End Select
- End Sub
-