?? form1.frm
字號:
VERSION 5.00
Object = "{F7AFC977-DBA3-4EF9-8650-64E50ED124E7}#1.0#0"; "MyTimerPrj.ocx"
Begin VB.Form Form1
Caption = "高精度定時器控件測試"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin MyTimerPrj.MyTimer MyTimer1
Left = 390
Top = 930
Enabled = 0 'False
Interval = 10
Resolution = 10
End
Begin VB.Timer Timer1
Left = 3930
Top = 930
End
Begin VB.CommandButton Command2
Caption = "結束"
Height = 585
Left = 2370
TabIndex = 2
Top = 2070
Width = 1575
End
Begin VB.CommandButton Command1
Caption = "開始"
Height = 585
Left = 420
TabIndex = 0
Top = 2070
Width = 1635
End
Begin VB.Label Label2
Caption = "計數:"
Height = 315
Left = 750
TabIndex = 3
Top = 330
Width = 1035
End
Begin VB.Label Label1
Caption = "0"
Height = 315
Left = 2220
TabIndex = 1
Top = 330
Width = 1305
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim count1 As Integer
Private Sub Command1_Click()
MyTimer1.Enabled = True
End Sub
Private Sub Command2_Click()
MyTimer1.Enabled = False
End Sub
Private Sub Form_Load()
count1 = 0
End Sub
Private Sub Form_Unload(Cancel As Integer)
MyTimer1.Enabled = False
End Sub
Private Sub MyTimer1_OnTimer()
If count1 > 30000 Then count1 = 0
count1 = count1 + 1
Label1.Caption = count1
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -