?? frmcontwo.frm
字號:
VERSION 5.00
Begin VB.Form frmConTwo
Caption = "連接狀態對話框"
ClientHeight = 1710
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
FillStyle = 7 'Diagonal Cross
Icon = "frmConTwo.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 1710
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton cmdCancel
Caption = "取消"
Height = 495
Left = 3120
TabIndex = 3
Top = 1080
Width = 1215
End
Begin VB.CommandButton cmdCon
Caption = "發送請求"
Height = 495
Left = 1800
TabIndex = 2
Top = 1080
Width = 1215
End
Begin VB.TextBox txtQuery
Height = 375
Left = 240
TabIndex = 1
Top = 480
Width = 4095
End
Begin VB.Label lblCon
Caption = "發送連接請求:"
Height = 255
Left = 240
TabIndex = 0
Top = 240
Width = 1335
End
End
Attribute VB_Name = "frmConTwo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdCon_Click()
Dim port As Long
'向服務器發送連接請求,首先確定端口號,聊天連接的端口由(10000開始)
port = 10000 + ConCount * 2
frmClient.wskClient.SendData "QICQRTC" + arrFriends(selectIndex).username + "," + CStr(port) + "," + txtQuery.Text
cmdCon.Enabled = False
End Sub
Private Sub Form_Load()
'初始化
lblCon.Caption = "向 " + arrFriends(selectIndex).nickname + "發送連接請求:"
lblCon.AutoSize = True
cmdCon.Caption = "發送連接"
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -