home *** CD-ROM | disk | FTP | other *** search
/ An Introduction to Progr…l Basic 6.0 (4th Edition) / An Introduction to Programming using Visual Basic 6.0.iso / PROGRAMS / CH5 / 5-2-4.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1998-11-02  |  2.1 KB  |  69 lines

  1. VERSION 5.00
  2. Begin VB.Form frm5_2_4 
  3.    Caption         =   "Quotation"
  4.    ClientHeight    =   1575
  5.    ClientLeft      =   1320
  6.    ClientTop       =   2115
  7.    ClientWidth     =   4815
  8.    BeginProperty Font 
  9.       Name            =   "MS Sans Serif"
  10.       Size            =   8.25
  11.       Charset         =   0
  12.       Weight          =   700
  13.       Underline       =   0   'False
  14.       Italic          =   0   'False
  15.       Strikethrough   =   0   'False
  16.    EndProperty
  17.    LinkTopic       =   "Form1"
  18.    PaletteMode     =   1  'UseZOrder
  19.    ScaleHeight     =   1575
  20.    ScaleWidth      =   4815
  21.    Begin VB.TextBox txtAnswer 
  22.       Height          =   285
  23.       Left            =   4440
  24.       TabIndex        =   3
  25.       Top             =   120
  26.       Width           =   255
  27.    End
  28.    Begin VB.PictureBox picQuote 
  29.       Height          =   375
  30.       Left            =   240
  31.       ScaleHeight     =   315
  32.       ScaleWidth      =   4275
  33.       TabIndex        =   2
  34.       Top             =   1080
  35.       Width           =   4335
  36.    End
  37.    Begin VB.CommandButton cmdDisplay 
  38.       Caption         =   "Display Quotation"
  39.       Height          =   495
  40.       Left            =   240
  41.       TabIndex        =   1
  42.       Top             =   480
  43.       Width           =   4335
  44.    End
  45.    Begin VB.Label lblQuestion 
  46.       Caption         =   "Do you know what the game of skittles is (Y/N)?"
  47.       Height          =   255
  48.       Left            =   120
  49.       TabIndex        =   0
  50.       Top             =   120
  51.       Width           =   4215
  52.    End
  53. Attribute VB_Name = "frm5_2_4"
  54. Attribute VB_GlobalNameSpace = False
  55. Attribute VB_Creatable = False
  56. Attribute VB_PredeclaredId = True
  57. Attribute VB_Exposed = False
  58. Private Sub cmdDisplay_Click()
  59.   Dim message As String
  60.   message = "Skittles is an old form of bowling in which a wooden" & _
  61.             " disk is used to knock down nine pins in a square."
  62.   If UCase(txtAnswer.Text) = "N" Then
  63.       MsgBox message, , ""
  64.   End If
  65.   picQuote.Cls
  66.   picQuote.Print "Life ain't all beer and skittles.";
  67.   picQuote.Print " - Du Maurier (1894)"
  68. End Sub
  69.