📄 passwordform.frm
字号:
VERSION 5.00
Begin VB.Form passwordform
Caption = "管理用户"
ClientHeight = 2100
ClientLeft = 60
ClientTop = 345
ClientWidth = 4080
Icon = "passwordform.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 2100
ScaleWidth = 4080
ShowInTaskbar = 0 'False
Begin VB.CommandButton Command2
Caption = "取 消"
Height = 375
Left = 2400
TabIndex = 2
Top = 1560
Width = 975
End
Begin VB.CommandButton Command1
Caption = "确 定"
Height = 375
Left = 600
TabIndex = 1
Top = 1560
Width = 1095
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
IMEMode = 3 'DISABLE
Left = 1320
PasswordChar = "*"
TabIndex = 0
Top = 840
Width = 2535
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1320
TabIndex = 4
Text = "xulang"
Top = 120
Width = 2535
End
Begin VB.Label Label2
Caption = "密 码:"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 5
Top = 960
Width = 1335
End
Begin VB.Label Label1
Caption = "管理员:"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 120
TabIndex = 3
Top = 240
Width = 1335
End
End
Attribute VB_Name = "passwordform"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If passwordform.Text1.Text = "xulang" And passwordform.Text2.Text = "xulang" Then
If mainform1 = 1 Then
Unload mainform
mainform1 = 0
End If
If xiaochuocha1 = 1 Then
Unload xiaochuocha
xiaochuocha1 = 0
End If
If chunjiacha1 = 1 Then
Unload chunjiacha
chunjiacha1 = 0
End If
If chanpincha1 = 1 Then
Unload chanpincha
chanpincha1 = 0
End If
If unioform1 = 1 Then
Unload unioncha1
unioform1 = 0
End If
If unioform2 = 1 Then
Unload unioncha2
unioform2 = 0
End If
If chatform11 = 1 Then
Unload chatform1
chatform11 = 0
End If
If chatform21 = 1 Then
Unload chatform2
chatform21 = 0
End If
passwordaddform.Show
Unload Me
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Activate()
If mainform1 = 1 Then
mainform.Enabled = False
End If
If xiaochuocha1 = 1 Then
xiaochuocha.Enabled = False
End If
If chunjiacha1 = 1 Then
chunjiacha.Enabled = False
End If
If chanpincha1 = 1 Then
chanpincha.Enabled = False
End If
If unioform1 = 1 Then
unioncha1.Enabled = False
End If
If unioform2 = 1 Then
unioncha2.Enabled = False
End If
If chatform11 = 1 Then
chatform1.Enabled = False
End If
If chatform21 = 1 Then
chatform2.Enabled = False
End If
End Sub
Private Sub Form_Load()
If wordfindform1 = 1 Then
Unload wordfindform
wordfindform1 = 0
End If
End Sub
Private Sub Form_Resize()
passwordform.Height = 2505
passwordform.Width = 4200
End Sub
Private Sub Form_Unload(Cancel As Integer)
If mainform1 = 1 Then
mainform.Enabled = True
End If
If xiaochuocha1 = 1 Then
xiaochuocha.Enabled = True
End If
If chunjiacha1 = 1 Then
chunjiacha.Enabled = True
End If
If chanpincha1 = 1 Then
chanpincha.Enabled = True
End If
If unioform1 = 1 Then
unioncha1.Enabled = True
End If
If unioform2 = 1 Then
unioncha2.Enabled = True
End If
If chatform11 = 1 Then
chatform1.Enabled = True
End If
If chatform21 = 1 Then
chatform2.Enabled = True
End If
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Command1_Click
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -