📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BackColor = &H00808080&
BorderStyle = 1 'Fixed Single
Caption = "PLC监控程序"
ClientHeight = 3105
ClientLeft = 45
ClientTop = 420
ClientWidth = 4680
ForeColor = &H00000000&
Icon = "Form1.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
Picture = "Form1.frx":0B3A
ScaleHeight = 3105
ScaleWidth = 4680
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Cmd2
BackColor = &H00FFFFC0&
Caption = "退出"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2760
Style = 1 'Graphical
TabIndex = 5
Top = 2280
Width = 1215
End
Begin VB.CommandButton Cmd1
BackColor = &H00FFFFC0&
Caption = "进入监控"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 720
Style = 1 'Graphical
TabIndex = 4
Top = 2280
Width = 1095
End
Begin VB.TextBox Txt2
Height = 375
IMEMode = 3 'DISABLE
Left = 1680
PasswordChar = "*"
TabIndex = 1
Top = 1320
Width = 2175
End
Begin VB.TextBox Txt1
Height = 375
Left = 1680
TabIndex = 0
Top = 600
Width = 2175
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "密码:"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 315
Left = 600
TabIndex = 3
Top = 1320
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "用户名:"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 285
Left = 480
TabIndex = 2
Top = 600
Width = 960
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Cmd1_Click()
Dim X As String
Rem 密码验证程序
If Txt1.Text = "geqingguang" And Txt2.Text = "123456" Then
Form1.Hide
Form2.Show
Form2.Enabled = True
Else: X = MsgBox("你输入的密码不正确", 16)
End If
End Sub
Private Sub Form_Load()
Form2.Enabled = False
Form2.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -