frmlogin.frm

来自「计算机网络课程设计--局域网聊天系统(VB开发的有源程序和完整的报告)」· FRM 代码 · 共 94 行

FRM
94
字号
VERSION 5.00
Begin VB.Form frmlogin 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "HeroChat 0.5"
   ClientHeight    =   2505
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3330
   ClipControls    =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2505
   ScaleWidth      =   3330
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton cmdexit 
      Cancel          =   -1  'True
      Caption         =   "退出"
      Height          =   495
      Left            =   1920
      TabIndex        =   3
      Top             =   1800
      Width           =   855
   End
   Begin VB.CommandButton cmdok 
      Caption         =   "登录"
      Default         =   -1  'True
      Height          =   495
      Left            =   600
      TabIndex        =   2
      Top             =   1800
      Width           =   855
   End
   Begin VB.TextBox NiName 
      Height          =   375
      Left            =   240
      MaxLength       =   10
      TabIndex        =   0
      Top             =   1200
      Width           =   2775
   End
   Begin VB.Label Title 
      Caption         =   "HeroChat"
      BeginProperty Font 
         Name            =   "Arial Black"
         Size            =   21.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   615
      Left            =   480
      TabIndex        =   4
      Top             =   0
      Width           =   2535
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "请输入昵称"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   240
      TabIndex        =   1
      Top             =   720
      Width           =   1335
   End
End
Attribute VB_Name = "frmlogin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdexit_Click()
Unload Me
End Sub

Private Sub cmdok_Click()
If NiName.Text = "" Then MsgBox "请输入昵称!", 48, "注意": Exit Sub
HeroChat_Client.Show
Unload Me
End Sub

⌨️ 快捷键说明

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