home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "Timer Example 2"
- ClientHeight = 6330
- ClientLeft = 1110
- ClientTop = 1485
- ClientWidth = 3315
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 1
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 6735
- Left = 1050
- LinkTopic = "Form1"
- ScaleHeight = 6330
- ScaleWidth = 3315
- Top = 1140
- Width = 3435
- Begin VBX.dwTimerCtl Timer1
- Index = 0
- Interval = 100
- Left = 120
- Top = 180
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- ForeColor = &H80000008&
- Height = 315
- Index = 0
- Left = 660
- TabIndex = 0
- Top = 180
- Width = 2055
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Form_Load()
- Dim x%
- For x% = 1 To 10
- Load Timer1(x%)
- Load label1(x%)
- label1(x%).Caption = "Not triggered"
- label1(x%).Top = label1(0).Top + x% * 400
- label1(x%).Visible = True
- Next x%
- End Sub
- Private Sub Timer1_Timer(Index As Integer)
- Dim y&
- y& = Val(label1(Index).Caption)
- label1(Index).Caption = Str$(y& + 1)
- End Sub
-