frmmain.frm
来自「超快速的多文件传送源码」· FRM 代码 · 共 53 行
FRM
53 行
VERSION 5.00
Object = "{248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0"; "mswinsck.ocx"
Begin VB.Form frmMain
BorderStyle = 3 'Fixed Dialog
Caption = "File Transfer Demo"
ClientHeight = 705
ClientLeft = 45
ClientTop = 330
ClientWidth = 4680
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 705
ScaleWidth = 4680
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton cmdSendFile
Caption = "Send A File!"
Height = 495
Left = 120
TabIndex = 0
Top = 120
Width = 4455
End
Begin MSWinsockLib.Winsock wsListen
Left = 3960
Top = 720
_ExtentX = 741
_ExtentY = 741
_Version = 393216
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdSendFile_Click()
SendFile "127.0.0.1" 'change destination
End Sub
Private Sub Form_Load()
wsListen.LocalPort = FT_USE_PORT
wsListen.Listen
End Sub
Private Sub wsListen_ConnectionRequest(ByVal requestID As Long)
ConnectReq requestID
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?