📄 frmsuperclient.frm
字号:
VERSION 5.00
Begin VB.Form FrmSuperClient
BorderStyle = 3 'Fixed Dialog
Caption = "新建超级帐号"
ClientHeight = 2970
ClientLeft = 45
ClientTop = 330
ClientWidth = 5070
ControlBox = 0 'False
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2970
ScaleWidth = 5070
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton CmdCancel
Caption = "取消(&E)"
Height = 375
Left = 3360
TabIndex = 4
Top = 2280
Width = 1335
End
Begin VB.CommandButton CmdOK
Caption = "确定(&O)"
Default = -1 'True
Height = 375
Left = 1800
TabIndex = 3
Top = 2280
Width = 1335
End
Begin VB.TextBox TxtPWD
Height = 300
IMEMode = 3 'DISABLE
Index = 1
Left = 960
MaxLength = 20
PasswordChar = "*"
TabIndex = 2
Top = 1560
Width = 2535
End
Begin VB.TextBox TxtPWD
Height = 300
IMEMode = 3 'DISABLE
Index = 0
Left = 960
MaxLength = 20
PasswordChar = "*"
TabIndex = 1
Top = 960
Width = 2535
End
Begin VB.ComboBox CboName
Height = 300
Left = 960
Style = 1 'Simple Combo
TabIndex = 0
Text = "请输入帐号名"
Top = 360
Width = 2535
End
Begin VB.Label LblQR
Caption = "输入密码错误请重新输入"
ForeColor = &H000000FF&
Height = 375
Left = 3600
TabIndex = 10
Top = 1560
Width = 1095
End
Begin VB.Label Label4
Caption = "请输入密码,不能用中文"
Height = 375
Left = 3600
TabIndex = 9
Top = 960
Width = 1095
End
Begin VB.Label Label5
Caption = "请输入帐号名"
Height = 375
Left = 3600
TabIndex = 8
Top = 480
Width = 1095
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "确认密码"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 0
TabIndex = 7
Top = 1680
Width = 915
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "密码"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 240
TabIndex = 6
Top = 1080
Width = 465
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "帐号名"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 120
TabIndex = 5
Top = 360
Width = 690
End
End
Attribute VB_Name = "FrmSuperClient"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdCancel_Click()
Unload Me
'FrmMain.SbStatusBar.Panels(1) = "就绪..."
End Sub
Private Sub CmdOK_Click()
Dim lngFH As Long
lngFH = FreeFile
If CboName.Text = "请输入帐号名" Then
MsgBox "请输入帐号名", , "超级帐号申请"
CboName.SetFocus
Exit Sub
ElseIf TxtPWD(0).Text = Empty Then
LblQR.Visible = False
MsgBox "密码不能为空", , "密码错误"
TxtPWD(0).SetFocus
Exit Sub
End If
If TxtPWD(1).Text = Empty Then
LblQR.Visible = True
TxtPWD(1).SetFocus
Exit Sub
End If
If TxtPWD(0).Text <> TxtPWD(1).Text Then
LblQR.Visible = True
Exit Sub
Else
LblQR.Visible = False
If MsgBox("是否确定生成该帐号?" & vbCrLf & "帐号:" & CboName.Text & vbCrLf & "密码:" & TxtPWD(1).Text & vbCrLf & "请牢记密码!", vbQuestion + vbOKCancel, "确定帐号") = vbOK Then
'将帐号和密码保存到密码文件中
Open "c:\UserPWD.txt" For Output As #lngFH
Print #lngFH, Empty
Print #lngFH, Trim(CStr(CboName.Text))
Print #lngFH, Trim(CStr(TxtPWD(1).Text))
Close #lngFH
FrmLogin.Show
Unload Me
'FrmMain.SbStatusBar.Panels(1) = "就绪..."
Else
TxtPWD(0) = Empty
TxtPWD(1) = Empty
CboName.Text = "请输入帐号名"
CboName.SetFocus
End If
End If
End Sub
Private Sub Form_Load()
LblQR.Visible = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -