home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of Windows 95.com 1996 September
/
WIN95_09964.iso
/
program
/
vxlcd12.zip
/
Stopwtch.frm
< prev
next >
Wrap
Text File
|
1996-07-20
|
3KB
|
122 lines
VERSION 4.00
Begin VB.Form Stopwatch
BorderStyle = 3 'Fixed Dialog
Caption = "Stopwatch"
ClientHeight = 1065
ClientLeft = 60
ClientTop = 4020
ClientWidth = 3570
Height = 1470
Icon = "Stopwtch.frx":0000
Left = 0
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1065
ScaleWidth = 3570
ShowInTaskbar = 0 'False
Top = 3675
Width = 3690
Begin VB.CommandButton Command1
Caption = "Close"
Height = 315
Left = 2640
TabIndex = 4
Top = 660
Width = 735
End
Begin VB.CommandButton cmdReset
Caption = "Reset"
Height = 315
Left = 1800
TabIndex = 3
Top = 660
Width = 735
End
Begin VB.CommandButton cmdStop
Caption = "Stop"
Height = 315
Left = 960
TabIndex = 2
Top = 660
Width = 735
End
Begin VB.CommandButton cmdStart
Caption = "Start"
Height = 315
Left = 120
TabIndex = 1
Top = 660
Width = 735
End
Begin VB.Timer Timer1
Enabled = 0 'False
Interval = 20
Left = 120
Top = 720
End
Begin VB.PictureBox picLCD
BackColor = &H00008000&
ForeColor = &H00800000&
Height = 375
Left = 120
ScaleHeight = 315
ScaleWidth = 3195
TabIndex = 0
Top = 120
Width = 3255
End
End
Attribute VB_Name = "Stopwatch"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Option Explicit
Dim moLCD As New CLCD
Dim mlCount As Long
Private Sub cmdReset_Click()
Timer1.Enabled = False
mlCount = 10000
moLCD.Caption = "1,000.0"
End Sub
Private Sub cmdStart_Click()
Timer1.Enabled = True
End Sub
Private Sub cmdStop_Click()
Timer1.Enabled = False
End Sub
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Form_Load()
mlCount = 10000
With moLCD
.BackColor = &H808080
.ForeColor = &H800000
Set .Container = picLCD
.Caption = "1,000.0"
End With
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set moLCD = Nothing
Set Stopwatch = Nothing
End Sub
Private Sub Timer1_Timer()
mlCount = mlCount + 1
moLCD.Caption = Format$(mlCount / 10, "###,###,##0.0")
End Sub