📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BackColor = &H00FF0000&
Caption = "ATM模拟系统"
ClientHeight = 4605
ClientLeft = 4395
ClientTop = 3375
ClientWidth = 6000
LinkTopic = "Form1"
ScaleHeight = 4605
ScaleWidth = 6000
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
BackColor = &H00C0FFFF&
Caption = "银行卡登陆信息"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000003&
Height = 2895
Left = 600
TabIndex = 7
Top = 1080
Width = 3975
Begin VB.TextBox Text2
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
IMEMode = 3 'DISABLE
Left = 240
PasswordChar = "*"
TabIndex = 11
Top = 2040
Width = 3375
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 9
Top = 960
Width = 3375
End
Begin VB.Label Label3
BackColor = &H00C0FFFF&
Caption = "密码"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1560
TabIndex = 10
Top = 1560
Width = 735
End
Begin VB.Label Label2
BackColor = &H00C0FFFF&
Caption = "卡号"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1560
TabIndex = 8
Top = 480
Width = 615
End
End
Begin VB.CommandButton Command6
BackColor = &H00C0FFFF&
Caption = "退出"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4680
MaskColor = &H0080FFFF&
Style = 1 'Graphical
TabIndex = 6
Top = 3480
UseMaskColor = -1 'True
Width = 855
End
Begin VB.CommandButton Command5
BackColor = &H00C0FFFF&
Caption = "开户"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4680
Style = 1 'Graphical
TabIndex = 2
Top = 1560
UseMaskColor = -1 'True
Width = 855
End
Begin VB.CommandButton Command4
BackColor = &H00C0FFFF&
Caption = "登陆"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4680
MaskColor = &H00FF0000&
Style = 1 'Graphical
TabIndex = 1
Top = 1080
UseMaskColor = -1 'True
Width = 855
End
Begin VB.CommandButton Command3
BackColor = &H00C0FFFF&
Caption = "解挂"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4680
Style = 1 'Graphical
TabIndex = 5
Top = 3000
UseMaskColor = -1 'True
Width = 855
End
Begin VB.CommandButton Command2
BackColor = &H00C0FFFF&
Caption = "挂失"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4680
Style = 1 'Graphical
TabIndex = 4
Top = 2520
UseMaskColor = -1 'True
Width = 855
End
Begin VB.CommandButton Command1
BackColor = &H00C0FFFF&
Caption = "消户"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4680
Style = 1 'Graphical
TabIndex = 3
Top = 2040
Width = 855
End
Begin VB.Line Line2
BorderWidth = 2
X1 = 0
X2 = 6000
Y1 = 840
Y2 = 840
End
Begin VB.Line Line1
BorderWidth = 2
X1 = 0
X2 = 6000
Y1 = 840
Y2 = 840
End
Begin VB.Label Label1
BackColor = &H00C0FFFF&
Caption = "ATM模拟系统"
BeginProperty Font
Name = "宋体"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1440
TabIndex = 0
Top = 240
Width = 3015
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 Command1_Click()
Unload Me
Form9.Show
End Sub
Private Sub Command2_Click()
Unload Me
Form10.Show
End Sub
Private Sub Command3_Click()
Unload Me
Form11.Show
End Sub
Private Sub Command4_Click()
Dim aa As String
aa = "select * from yinhang where 卡号='" & Trim(Text1.Text) & "' and 密码='" & Trim(Text2.Text) & "'"
rsstor (aa)
If Text1.Text = "" Or Text2.Text = "" Then
MsgBox "帐户或密码不能为空!"
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
ElseIf Not IsNumeric(Text2.Text) Then
MsgBox "密码必须为数字"
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
ElseIf Len(Text2.Text) < 6 Then
MsgBox "密码至少为6位数字"
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
ElseIf rss.BOF And rss.EOF Then
MsgBox "你的卡号或密码有误,请重试!"
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
Exit Sub
Else
Dim aaa As String
aaa = "select 挂失状态 from yinhang where 卡号='" & Trim(Text1.Text) & "'"
rsstor (aaa)
If (rss.Fields("挂失状态") = "no") Then
MsgBox "登陆成功"
str = Text1.Text
str1 = Text2.Text
Unload Me
Form2.Show
Else
MsgBox "该用户已挂失,请解挂后再来登陆"
Text1.Text = ""
Text2.Text = ""
Command3.SetFocus
End If
End If
End Sub
Private Sub Command5_Click()
Unload Me
Form8.Show
End Sub
Private Sub Command6_Click()
End
End Sub
Private Sub Form_Load()
cnntor
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -