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 / CH3 / 3-5-6.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1997-05-16  |  1.6 KB  |  51 lines

  1. VERSION 5.00
  2. Begin VB.Form frm3_5_6 
  3.    Caption         =   "3-5-6"
  4.    ClientHeight    =   2055
  5.    ClientLeft      =   1095
  6.    ClientTop       =   1485
  7.    ClientWidth     =   3735
  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     =   2055
  20.    ScaleWidth      =   3735
  21.    Begin VB.PictureBox picTable 
  22.       Height          =   1215
  23.       Left            =   120
  24.       ScaleHeight     =   1155
  25.       ScaleWidth      =   3435
  26.       TabIndex        =   1
  27.       Top             =   720
  28.       Width           =   3495
  29.    End
  30.    Begin VB.CommandButton cmdDisplay 
  31.       Caption         =   "Display Table"
  32.       Height          =   495
  33.       Left            =   600
  34.       TabIndex        =   0
  35.       Top             =   120
  36.       Width           =   2535
  37.    End
  38. Attribute VB_Name = "frm3_5_6"
  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.   picTable.Cls
  45.   picTable.Print Tab(10); "1970-71"; Tab(20); "1980-81"; Tab(30); "1990-91"
  46.   picTable.Print
  47.   picTable.Print "Male"; Tab(10); 476; Tab(20); 470; Tab(30); 490
  48.   picTable.Print "Female"; Tab(10); 364; Tab(20); 465; Tab(30); 560
  49.   picTable.Print "Total"; Tab(10); 840; Tab(20); 935; Tab(30); 1050
  50. End Sub
  51.