📄 frmlogin.frm
字号:
VERSION 5.00
Begin VB.Form formLogin
BackColor = &H00FFC0C0&
BorderStyle = 3 'Fixed Dialog
Caption = "常德市职业中专图书管理系统——登录"
ClientHeight = 1320
ClientLeft = 2835
ClientTop = 3480
ClientWidth = 3960
Icon = "frmLogin.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 779.9
ScaleMode = 0 'User
ScaleWidth = 3718.226
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Visible = 0 'False
Begin VB.TextBox Text1
Height = 270
Left = 510
TabIndex = 4
Text = "Text1"
Top = 1335
Visible = 0 'False
Width = 2070
End
Begin VB.CommandButton cmdOK
BackColor = &H00FFC0FF&
Caption = "确定"
Default = -1 'True
Height = 345
Left = 600
MaskColor = &H00C0C0FF&
TabIndex = 1
Top = 840
Width = 1140
End
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "取消"
Height = 345
Left = 2400
TabIndex = 2
Top = 825
Width = 1140
End
Begin VB.TextBox txtPassword
Appearance = 0 'Flat
Height = 270
IMEMode = 3 'DISABLE
Left = 1200
MaxLength = 10
PasswordChar = "*"
TabIndex = 0
Top = 240
Width = 2085
End
Begin VB.Image Image1
Height = 480
Left = 480
Picture = "frmLogin.frx":0442
Top = 120
Width = 480
End
Begin VB.Label Label1
BackColor = &H00FFC0C0&
Caption = "点击取消将退出程序"
ForeColor = &H00FF0000&
Height = 195
Left = 1320
TabIndex = 3
Top = 540
Width = 1710
End
End
Attribute VB_Name = "formLogin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'***************登陆对话框**************
'所调用的API函数,自定义过程,类型,常数请参阅相应模块
Option Explicit
Private Sub cmdCancel_Click()
End
End Sub
Private Sub cmdOK_Click()
Text1.Text = getinistr("option", "password") '读取密码(由于时间关系密码没有存为密码文件
If txtPassword.Text = Text1.Text Then '和加密,直接放在ini文件中)
Formmain.Show
Unload Me
Else
MsgBox "密码错误,请重试"
End If
End Sub
Private Sub Form_Load()
Me.Icon = LoadPicture("")
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -