📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "P2P服务器DEMO 深圳君曼科技 端口号是:3292"
ClientHeight = 4350
ClientLeft = 60
ClientTop = 345
ClientWidth = 5970
LinkTopic = "Form1"
ScaleHeight = 4350
ScaleWidth = 5970
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text3
Height = 375
Left = 1200
TabIndex = 4
Text = "10002"
Top = 120
Width = 1095
End
Begin VB.TextBox Text2
Height = 375
Left = 1200
TabIndex = 3
Text = "BBBBBBBBBBBBBBBBBBB"
Top = 600
Width = 4455
End
Begin VB.TextBox Text1
Height = 2415
Left = 120
TabIndex = 1
Top = 1800
Width = 5655
End
Begin VB.Timer Timer1
Left = 5400
Top = 120
End
Begin VB.CommandButton Command2
Caption = "发送信息到对方客户端"
Height = 375
Left = 1200
TabIndex = 0
Top = 1080
Width = 2175
End
Begin VB.Label Label4
Caption = "<--可以是任意一登陆用户的号码"
Height = 255
Left = 2280
TabIndex = 7
Top = 240
Width = 3255
End
Begin VB.Label Label3
Caption = "消息内容:"
Height = 255
Left = 120
TabIndex = 6
Top = 720
Width = 1095
End
Begin VB.Label Label2
Caption = "对方号码:"
Height = 255
Left = 120
TabIndex = 5
Top = 240
Width = 1095
End
Begin VB.Label Label1
Caption = "收到客户端信息"
Height = 255
Left = 120
TabIndex = 2
Top = 1560
Width = 1335
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command2_Click()
DllSendMsg CLng(Text3.Text), 1, Text2.Text
End Sub
Private Sub Form_Load()
Call DllStartUP(AddressOf GetClientMsg)
Timer1.Interval = 3000
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Call DllDestroy
End Sub
Private Sub Timer1_Timer()
Call DllOnTimer(1)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -