⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmcontwo.frm

📁 This article introduces how to construct a Hospital Ward Information System with three-tiered techno
💻 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 + -