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

📄 frmclientlogin.frm

📁 用VB 实现的一个聊天室
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmClientLogIn 
   BackColor       =   &H00C0C0C0&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "登录"
   ClientHeight    =   3450
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3480
   Icon            =   "frmClientLogin.frx":0000
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3450
   ScaleWidth      =   3480
   StartUpPosition =   3  'Windows Default
   Begin VB.Frame Frame1 
      Height          =   2745
      Left            =   120
      TabIndex        =   1
      Top             =   120
      Width           =   3240
      Begin VB.TextBox txtUserName 
         BackColor       =   &H00FFFFFF&
         Height          =   375
         Left            =   120
         TabIndex        =   4
         Top             =   2160
         Width           =   2895
      End
      Begin VB.TextBox txtPorNum 
         BackColor       =   &H00FFFFFF&
         Height          =   375
         Left            =   120
         TabIndex        =   3
         Top             =   1320
         Width           =   2895
      End
      Begin VB.TextBox txtserver 
         BackColor       =   &H00FFFFFF&
         Height          =   375
         Left            =   150
         TabIndex        =   2
         Top             =   480
         Width           =   2910
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "请选择服务器"
         Height          =   240
         Left            =   120
         TabIndex        =   7
         Top             =   225
         Width           =   1935
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "请选择登录名称"
         Height          =   375
         Left            =   120
         TabIndex        =   6
         Top             =   1800
         Width           =   1455
      End
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Caption         =   "请选择端口号"
         Height          =   375
         Left            =   165
         TabIndex        =   5
         Top             =   960
         Width           =   1575
      End
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确定"
      Height          =   330
      Left            =   2040
      TabIndex        =   0
      Top             =   3000
      Width           =   855
   End
End
Attribute VB_Name = "frmClientLogIn"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdOK_Click()
If frmClientLogIn.txtserver.Text = "" Then
   MsgBox "请输入服务器IP地址", vbYesNo, "警告"
ElseIf frmClientLogIn.txtPorNum.Text = "" Then
   MsgBox "请输入端口号", vbYesNo, "警告"
ElseIf frmClientLogIn.txtserver.Text = "" And frmClientLogIn.txtPorNum.Text = "" _
       Then frmClient.cmdConnect.Enabled = False   '连接按纽无效
Else
frmClient.txtHost = frmClientLogIn.txtserver.Text
frmClient.txtPort = frmClientLogIn.txtPorNum.Text
frmClient.lblName = frmClientLogIn.txtUserName
frmClient.cmdConnect.Enabled = True
frmClient.cmdQuit.Enabled = True
Unload frmClientLogIn
End If
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -