cansend.frm
来自「本书源码主要针对目前流行的FTP、HTTP、E-mail、Telnet、ICMP」· FRM 代码 · 共 58 行
FRM
58 行
VERSION 5.00
Begin VB.Form frmCancelSend
BorderStyle = 3 'Fixed Dialog
Caption = "MS Comm串口演示"
ClientHeight = 1296
ClientLeft = 1452
ClientTop = 3792
ClientWidth = 5220
ControlBox = 0 'False
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1296
ScaleWidth = 5220
Begin VB.CommandButton Command1
Cancel = -1 'True
Caption = "取消"
Height = 372
Left = 2160
TabIndex = 1
Top = 840
Width = 972
End
Begin VB.Label Label1
Height = 492
Left = 120
TabIndex = 0
Top = 120
Width = 4932
End
End
Attribute VB_Name = "frmCancelSend"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
DefInt A-Z
Option Explicit
Const SWP_NOMOVE = &H2
Const SWP_NOSIZE = &H1
Private Sub Command1_Click()
CancelSend = True
End Sub
Private Sub Form_Activate()
SetWindowPos hWnd, -1, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
End Sub
Private Sub Form_Deactivate()
If Not CancelSend Then
frmCancelSend.Show
End If
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?