?? frmitemupdateinterval.frm
字號:
VERSION 5.00
Begin VB.Form frmItemUpdateInterval
Caption = "數據項更新間隔時間設置"
ClientHeight = 1290
ClientLeft = 60
ClientTop = 345
ClientWidth = 3360
ControlBox = 0 'False
LinkTopic = "Form1"
ScaleHeight = 1290
ScaleWidth = 3360
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Ok
Caption = "Ok"
Height = 375
Left = 990
TabIndex = 2
ToolTipText = "Hit Ok to accept the new update interval"
Top = 810
Width = 1215
End
Begin VB.TextBox Interval
Height = 285
Left = 1440
MaxLength = 5
TabIndex = 1
Text = "50"
ToolTipText = "Enter the update interval for the display of data (50 - 10000) ms."
Top = 300
Width = 1815
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "更新間隔(ms):"
Height = 180
Left = 210
TabIndex = 0
Top = 360
Width = 1170
End
End
Attribute VB_Name = "frmItemUpdateInterval"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Option Base 1
Private Sub Form_Load()
Interval.Text = Mid(Str(fMainForm.Timer1.Interval), 2)
End Sub
Private Sub Ok_Click()
Dim IntVal As Long
IntVal = Val(Interval.Text)
If IntVal < 50 Then
IntVal = 50
ElseIf IntVal > 10000 Then
IntVal = 10000
End If
Interval.Text = Mid(Str(IntVal), 2)
fMainForm.Timer1.Enabled = False
fMainForm.Timer1.Interval = IntVal
fMainForm.Timer1.Enabled = True
Unload Me
End Sub
Private Sub Form_Deactivate()
frmItemUpdateInterval.Show
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -