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 / CH6 / 6-3-4.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1997-05-18  |  1.5 KB  |  53 lines

  1. VERSION 5.00
  2. Begin VB.Form frmMultiply 
  3.    Caption         =   "Multiplication Table"
  4.    ClientHeight    =   1860
  5.    ClientLeft      =   975
  6.    ClientTop       =   2445
  7.    ClientWidth     =   5205
  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     =   1860
  20.    ScaleWidth      =   5205
  21.    Begin VB.CommandButton cmdDisplay 
  22.       Caption         =   "Display Table"
  23.       Height          =   495
  24.       Left            =   1080
  25.       TabIndex        =   1
  26.       Top             =   120
  27.       Width           =   2535
  28.    End
  29.    Begin VB.PictureBox picTable 
  30.       Height          =   855
  31.       Left            =   120
  32.       ScaleHeight     =   795
  33.       ScaleWidth      =   4875
  34.       TabIndex        =   0
  35.       Top             =   840
  36.       Width           =   4935
  37.    End
  38. Attribute VB_Name = "frmMultiply"
  39. Attribute VB_GlobalNameSpace = False
  40. Attribute VB_Creatable = False
  41. Attribute VB_PredeclaredId = True
  42. Attribute VB_Exposed = False
  43. Private Sub cmdDisplay_Click()
  44.   Dim j As Integer, k As Integer
  45.   picTable.Cls
  46.   For j = 1 To 4
  47.     For k = 1 To 4
  48.       picTable.Print j; "x"; k; "="; j * k,
  49.     Next k
  50.     picTable.Print
  51.   Next j
  52. End Sub
  53.