home *** CD-ROM | disk | FTP | other *** search
/ Dan Appleman's Visual Bas…s Guide to the Win32 API / Dan.Applmans.Visual.Basic.5.0.Programmers.Guide.To.The.Win32.API.1997.Ziff-Davis.Press.CD / VB5PG32.mdf / articles / vbdev / source / dwtim1.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-01-22  |  1.7 KB  |  62 lines

  1. VERSION 4.00
  2. Begin VB.Form Form1 
  3.    Appearance      =   0  'Flat
  4.    BackColor       =   &H80000005&
  5.    Caption         =   "Form1"
  6.    ClientHeight    =   6330
  7.    ClientLeft      =   1095
  8.    ClientTop       =   1485
  9.    ClientWidth     =   1455
  10.    BeginProperty Font 
  11.       name            =   "MS Sans Serif"
  12.       charset         =   1
  13.       weight          =   700
  14.       size            =   8.25
  15.       underline       =   0   'False
  16.       italic          =   0   'False
  17.       strikethrough   =   0   'False
  18.    EndProperty
  19.    ForeColor       =   &H80000008&
  20.    Height          =   6735
  21.    Left            =   1035
  22.    LinkTopic       =   "Form1"
  23.    ScaleHeight     =   6330
  24.    ScaleWidth      =   1455
  25.    Top             =   1140
  26.    Width           =   1575
  27.    Begin VBX.dwTimerCtl dwTimer1 
  28.       Index           =   0
  29.       Interval        =   300
  30.       Left            =   60
  31.       Top             =   180
  32.    End
  33.    Begin VB.Label Label1 
  34.       Appearance      =   0  'Flat
  35.       BackColor       =   &H80000005&
  36.       ForeColor       =   &H80000008&
  37.       Height          =   315
  38.       Index           =   0
  39.       Left            =   180
  40.       TabIndex        =   0
  41.       Top             =   180
  42.       Width           =   1035
  43.    End
  44. Attribute VB_Name = "Form1"
  45. Attribute VB_Creatable = False
  46. Attribute VB_Exposed = False
  47. Option Explicit
  48. Private Sub dwTimer1_Timer(Index As Integer)
  49.     Dim y&
  50.     y& = Val(label1(Index).Caption)
  51.     label1(Index).Caption = Str$(y& + 1)
  52. End Sub
  53. Private Sub Form_Load()
  54.     Dim x%
  55.     For x% = 1 To 10
  56.         Load dwTimer1(x%)
  57.         Load label1(x%)
  58.         label1(x%).Top = label1(0).Top + x% * 400
  59.         label1(x%).Visible = True
  60.     Next x%
  61. End Sub
  62.