【VB开源代码栏目提醒】:网学会员为广大网友收集整理了,Ex8_2.frm,希望对大家有所帮助!
VERSION 5.00
Begin VB.Form Ex8_2
Caption = "登录界面"
ClientHeight = 2355
ClientLeft = 60
ClientTop = 450
ClientWidth = 4260
LinkTopic = "Form1"
ScaleHeight = 2355
ScaleWidth = 4260
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "退出"
Height = 375
Left = 2160
TabIndex = 5
Top = 1560
Width = 735
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 1080
TabIndex = 4
Top = 1560
Width = 735
End
Begin VB.TextBox Text2
Height = 375
IMEMode = 3 'DISABLE
Left = 1440
Pass
wordChar = "*"
TabIndex = 3
Top = 960
Width = 1815
End
Begin VB.TextBox Text1
Height = 375
Left = 1440
TabIndex = 2
Top = 360
Width = 1815
End
Begin
VB.Label Label2
Caption = "密码"
Height = 255
Left = 840
TabIndex = 1
Top = 1080
Width = 375
End
Begin VB.Label Label1
Caption = "用户名"
Height = 255
Left = 720
TabIndex = 0
Top = 480
Width = 615
End
End
Attribute VB_Name = "Ex8_2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
If Text1 = "Guest" And Text2 = "12345" Then
MsgBox "欢迎使用本系统!", vbOKOnly, "输入"
Else
MsgBox "对不起,你不是本
系统用户!", vbOKOnly, "输入"
End If
End Sub
Private Sub Command2_Click()
End
End Sub