📄 formtj.frm
字号:
VERSION 5.00
Begin VB.Form Formmain
BackColor = &H00FFC0C0&
Caption = "欢迎使用本软件"
ClientHeight = 2880
ClientLeft = 4845
ClientTop = 3630
ClientWidth = 5820
Icon = "Formtj.frx":0000
LinkTopic = "Form2"
ScaleHeight = 2880
ScaleWidth = 5820
Begin VB.PictureBox Picture1
BackColor = &H00FFC0C0&
BorderStyle = 0 'None
Height = 495
Left = 2400
ScaleHeight = 495
ScaleWidth = 1935
TabIndex = 7
Top = 1680
Width = 1935
Begin VB.CommandButton Cmdenter
BackColor = &H00FFC0C0&
Caption = "进 入"
Height = 495
Left = 0
MaskColor = &H00C0FFC0&
TabIndex = 8
Top = 0
UseMaskColor = -1 'True
Width = 1575
End
End
Begin VB.OptionButton Option1
BackColor = &H00FFC0C0&
Caption = "正常登陆"
Height = 255
Left = 4440
TabIndex = 6
Top = 1080
Value = -1 'True
Width = 1095
End
Begin VB.OptionButton Opt1
BackColor = &H00FFC0C0&
Caption = "试用"
Height = 375
Left = 4440
TabIndex = 4
ToolTipText = "如果你想先试用笨软件请点选此项"
Top = 480
Width = 975
End
Begin VB.TextBox Text1
Alignment = 2 'Center
Height = 375
Left = 2160
TabIndex = 3
ToolTipText = "试用也请填用户名"
Top = 480
Width = 1935
End
Begin VB.TextBox Txtmima
Alignment = 2 'Center
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
IMEMode = 3 'DISABLE
Left = 2160
PasswordChar = "*"
TabIndex = 2
Top = 1080
Width = 1935
End
Begin VB.Label Label2
Alignment = 2 'Center
BackColor = &H00FFC0C0&
Caption = "由于程序使用了特殊定义,请不要使用tab键切换光标位置,否则会引起程序错误!"
Height = 975
Left = 120
TabIndex = 5
Top = 1560
Width = 2055
End
Begin VB.Label Label1
AutoSize = -1 'True
BackColor = &H00FFC0C0&
Caption = "密 码"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H008080FF&
Height = 315
Index = 1
Left = 720
TabIndex = 1
Top = 1080
Width = 795
End
Begin VB.Label Label1
AutoSize = -1 'True
BackColor = &H00FFC0C0&
Caption = "用户名"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H008080FF&
Height = 315
Index = 0
Left = 720
TabIndex = 0
Top = 480
Width = 945
End
End
Attribute VB_Name = "Formmain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Const vbKeyDecPt = 46
Private Sub cmdenter_Click()
If Opt1.Value Then
If Text1.Text = "" Then
MsgBox "用户名不能为空!!请输入用户名", vbCritical, "注意!!"
Text1.SetFocus
Text1.SelStart = 0
Text1.SelLength = Len(Text1)
Else
Form1.Labn.Caption = Formmain.Text1
Form1.Show
Dim i As Integer
For i = 8 To 19
Form1.Command2(i).Enabled = False
Next i
Form1.Cmd_tsz.Enabled = False
Form1.Cmdqtcx.Enabled = False
Unload Me
End If
Else
If Text1.Text = "" Then
MsgBox "用户名不能为空!!请输入用户名", vbCritical, "注意!!"
Text1.SetFocus
Text1.SelStart = 0
Text1.SelLength = Len(Text1)
Else
If Text1.Text = "BTcool" Then
If Val(Txtmima) = 87012292 Then
Form1.Labn.Caption = Formmain.Text1
Form1.Show
Unload Me
Else
MsgBox "密码不正确,请重新输入", vbExclamation + vbOKOnly, "注意!"
Txtmima.SetFocus
Txtmima.SelStart = 0
Txtmima.SelLength = Len(Txtmima)
Exit Sub
End If
Else
MsgBox "非法用户!" & Text1.Text & "禁止使用!!", vbCritical, "请确认用户名!!"
Exit Sub
End If
End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -