📄 useredit_addu.frm
字号:
VERSION 5.00
Begin VB.Form useredit_addu
BorderStyle = 4 'Fixed ToolWindow
Caption = "添加新的用户"
ClientHeight = 3765
ClientLeft = 45
ClientTop = 270
ClientWidth = 5625
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3765
ScaleWidth = 5625
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Begin VB.TextBox Text3
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
IMEMode = 3 'DISABLE
Left = 2520
PasswordChar = "*"
TabIndex = 9
Top = 2400
Width = 3015
End
Begin VB.PictureBox Picture1
BackColor = &H00FFE09E&
Height = 3735
Left = 0
Picture = "useredit_addu.frx":0000
ScaleHeight = 3675
ScaleWidth = 2235
TabIndex = 6
TabStop = 0 'False
Top = 0
Width = 2295
Begin VB.Image Image1
Height = 480
Left = 240
Picture = "useredit_addu.frx":3A064
Stretch = -1 'True
Top = 120
Width = 585
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "添加新用户"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H00800000&
Height = 375
Index = 1
Left = 165
TabIndex = 7
Top = 765
Width = 2535
End
Begin VB.Shape Shape2
BorderColor = &H0000FF00&
BorderWidth = 2
Height = 15
Left = 120
Top = 1150
Width = 1455
End
Begin VB.Shape Shape1
BorderColor = &H000000FF&
BorderWidth = 2
Height = 15
Left = 120
Top = 1080
Width = 1575
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "添加新用户"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 375
Index = 0
Left = 135
TabIndex = 8
Top = 735
Width = 2655
End
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 405
Left = 2520
TabIndex = 3
Top = 720
Width = 3015
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
IMEMode = 3 'DISABLE
Left = 2520
PasswordChar = "*"
TabIndex = 2
Top = 1560
Width = 3015
End
Begin VB.CommandButton Command2
Caption = "确 定(&Y)"
Default = -1 'True
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2760
TabIndex = 1
Top = 3240
Width = 1335
End
Begin VB.CommandButton Command4
Cancel = -1 'True
Caption = "取 消(&C)"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4200
TabIndex = 0
Top = 3240
Width = 1335
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "确定密码:(&P)"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 255
Left = 2520
TabIndex = 10
Top = 2040
Width = 2295
End
Begin VB.Label Label7
BackStyle = 0 'Transparent
Caption = "用户名:(&N)"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 255
Left = 2520
TabIndex = 5
Top = 360
Width = 2295
End
Begin VB.Label Label8
BackStyle = 0 'Transparent
Caption = "密码:(&P)"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 255
Left = 2520
TabIndex = 4
Top = 1200
Width = 2295
End
End
Attribute VB_Name = "useredit_addu"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public yesno As Boolean
Public nn As String
Public pp As String
Private Sub Command2_Click()
If Len(Text1.Text) > 10 Then
MsgBox "用户名过长,请修改。", vbOKOnly Or vbInformation, "提示"
Text1.SetFocus
Exit Sub
End If
If Len(Text2.Text) > 10 Then
MsgBox "密码过长,请修改。", vbOKOnly Or vbInformation, "提示"
Text2.SetFocus
Exit Sub
End If
If Text2.Text <> Text3.Text Then
MsgBox "密码重复不同,请修改。", vbOKOnly Or vbInformation, "提示"
Text2.SetFocus
Exit Sub
End If
nn = Trim(Text1.Text)
pp = Text2.Text
yesno = True
Unload Me
End Sub
Private Sub Command4_Click()
Unload Me
End Sub
Private Sub Form_Load()
yesno = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -