📄 frmchkconctn.frm
字号:
VERSION 5.00
Begin VB.Form frmChkConctn
BorderStyle = 4 'Fixed ToolWindow
Caption = "Checking Connection"
ClientHeight = 990
ClientLeft = 45
ClientTop = 285
ClientWidth = 2415
ControlBox = 0 'False
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
Moveable = 0 'False
ScaleHeight = 990
ScaleWidth = 2415
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Begin VB.PictureBox picAnim
AutoSize = -1 'True
BorderStyle = 0 'None
Height = 240
Left = 720
Picture = "frmChkConctn.frx":0000
ScaleHeight = 240
ScaleWidth = 960
TabIndex = 0
Top = 360
Width = 960
End
Begin VB.Image imgRecvFrames
Height = 240
Index = 3
Left = 3360
Picture = "frmChkConctn.frx":0282
Top = 1800
Width = 960
End
Begin VB.Image imgRecvFrames
Height = 240
Index = 2
Left = 2280
Picture = "frmChkConctn.frx":0504
Top = 1800
Width = 960
End
Begin VB.Image imgRecvFrames
Height = 240
Index = 1
Left = 1200
Picture = "frmChkConctn.frx":0786
Top = 1800
Width = 960
End
Begin VB.Image imgRecvFrames
Height = 240
Index = 0
Left = 120
Picture = "frmChkConctn.frx":0A08
Top = 1800
Width = 960
End
Begin VB.Image imgSendFrames
Height = 240
Index = 3
Left = 3360
Picture = "frmChkConctn.frx":0C8A
Top = 1440
Width = 960
End
Begin VB.Image imgSendFrames
Height = 240
Index = 2
Left = 2280
Picture = "frmChkConctn.frx":0F0C
Top = 1440
Width = 960
End
Begin VB.Image imgSendFrames
Height = 240
Index = 1
Left = 1200
Picture = "frmChkConctn.frx":118E
Top = 1440
Width = 960
End
Begin VB.Image imgDataLine
Height = 240
Left = 120
Picture = "frmChkConctn.frx":1410
Top = 1080
Width = 960
End
Begin VB.Image imgSendFrames
Height = 240
Index = 0
Left = 120
Picture = "frmChkConctn.frx":1692
Top = 1440
Width = 960
End
Begin VB.Image Image2
Height = 480
Left = 1680
Picture = "frmChkConctn.frx":1914
Stretch = -1 'True
Top = 240
Width = 480
End
Begin VB.Image Image1
Height = 495
Left = 240
Picture = "frmChkConctn.frx":1B96
Top = 240
Width = 480
End
End
Attribute VB_Name = "frmChkConctn"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'Delays in multiples of 18.2 ms
Public Sub BadDelay(ByVal DelLength As Integer)
Dim cntr As Integer
Dim TimerStart As Single
Dim CurTime As Single
If DelLength = 0 Then
Exit Sub
End If
For cntr = 1 To DelLength
TimerStart = Timer
'Delay for 18.5 ms
Do
'get the current time
CurTime = Timer
Loop Until CurTime <> TimerStart
Next cntr
End Sub
Public Sub AnimateSend()
Dim cntr As Integer
For cntr = 0 To 3
picAnim.Picture = imgSendFrames(cntr).Picture
BadDelay 2
Next cntr
picAnim.Picture = imgDataLine.Picture
End Sub
Public Sub AnimateRecv()
Dim cntr As Integer
For cntr = 0 To 3
picAnim.Picture = imgRecvFrames(cntr).Picture
BadDelay 2
Next cntr
picAnim.Picture = imgDataLine.Picture
End Sub
Public Sub AnimateSendRecv()
AnimateSend
AnimateRecv
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -