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 / CH7 / 7-3-3.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1998-09-18  |  1.7 KB  |  56 lines

  1. VERSION 5.00
  2. Begin VB.Form frm7_3_3 
  3.    Caption         =   "Year"
  4.    ClientHeight    =   3615
  5.    ClientLeft      =   1095
  6.    ClientTop       =   1485
  7.    ClientWidth     =   1680
  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     =   3615
  20.    ScaleWidth      =   1680
  21.    Begin VB.TextBox txtInfo 
  22.       Height          =   285
  23.       Index           =   0
  24.       Left            =   600
  25.       TabIndex        =   1
  26.       Top             =   120
  27.       Width           =   975
  28.    End
  29.    Begin VB.Label lblMonth 
  30.       Caption         =   "Jan"
  31.       Height          =   255
  32.       Index           =   0
  33.       Left            =   120
  34.       TabIndex        =   0
  35.       Top             =   120
  36.       Width           =   375
  37.    End
  38. Attribute VB_Name = "frm7_3_3"
  39. Attribute VB_GlobalNameSpace = False
  40. Attribute VB_Creatable = False
  41. Attribute VB_PredeclaredId = True
  42. Attribute VB_Exposed = False
  43. Private Sub Form_Load()
  44.   Dim i As Integer, monthNames As String
  45.   monthNames = "FebMarAprMayJunJulAugSepOctNovDec"
  46.   For i = 1 To 11
  47.     Load lblMonth(i)
  48.     Load txtInfo(i)
  49.     lblMonth(i).Top = lblMonth(i - 1).Top + txtInfo(0).Height
  50.     txtInfo(i).Top = txtInfo(i - 1).Top + txtInfo(0).Height
  51.     lblMonth(i).Caption = Mid(monthNames, 3 * i - 2, 3)
  52.     lblMonth(i).Visible = True
  53.     txtInfo(i).Visible = True
  54.   Next i
  55. End Sub
  56.