📄 mima.frm
字号:
VERSION 5.00
Begin VB.Form mima
Caption = "卡片密码设置"
ClientHeight = 6195
ClientLeft = 60
ClientTop = 450
ClientWidth = 9330
LinkTopic = "Form2"
ScaleHeight = 6195
ScaleWidth = 9330
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "退出"
Height = 375
Left = 3600
TabIndex = 28
Top = 4680
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 495
Left = 840
TabIndex = 27
Top = 4560
Width = 1695
End
Begin VB.Frame Frame3
Caption = "密码值"
Height = 975
Left = 360
TabIndex = 22
Top = 3360
Width = 6975
Begin VB.TextBox Text2
Height = 375
Left = 5280
TabIndex = 26
Top = 360
Width = 1455
End
Begin VB.TextBox Text1
Height = 375
IMEMode = 3 'DISABLE
Left = 1800
PasswordChar = "*"
TabIndex = 23
Top = 360
Width = 1575
End
Begin VB.Label Label3
Caption = "密码长度"
Height = 375
Left = 3960
TabIndex = 25
Top = 480
Width = 1215
End
Begin VB.Label Label2
Caption = "请输入密码"
Height = 375
Left = 240
TabIndex = 24
Top = 480
Width = 1215
End
End
Begin VB.Frame Frame2
Caption = "密码区"
Height = 2415
Left = 5640
TabIndex = 18
Top = 720
Width = 1695
Begin VB.OptionButton Option19
Caption = "密码A,B"
Enabled = 0 'False
Height = 375
Left = 360
TabIndex = 21
Top = 1680
Width = 975
End
Begin VB.OptionButton Option18
Caption = "密码B"
Height = 375
Left = 360
TabIndex = 20
Top = 1080
Width = 1095
End
Begin VB.OptionButton Option17
Caption = "密码A"
Height = 375
Left = 360
TabIndex = 19
Top = 480
Width = 975
End
End
Begin VB.Frame Frame1
Caption = "扇区号"
Height = 2535
Left = 480
TabIndex = 1
Top = 720
Width = 4815
Begin VB.OptionButton Option16
Caption = "15"
Height = 375
Left = 3600
TabIndex = 17
Top = 1920
Width = 975
End
Begin VB.OptionButton Option15
Caption = "14"
Height = 255
Left = 3600
TabIndex = 16
Top = 1440
Width = 975
End
Begin VB.OptionButton Option14
Caption = "13"
Height = 375
Left = 3600
TabIndex = 15
Top = 960
Width = 975
End
Begin VB.OptionButton Option13
Caption = "12"
Height = 255
Left = 3600
TabIndex = 14
Top = 480
Width = 975
End
Begin VB.OptionButton Option12
Caption = "11"
Height = 375
Left = 2640
TabIndex = 13
Top = 1800
Width = 975
End
Begin VB.OptionButton Option11
Caption = "10"
Height = 255
Left = 2640
TabIndex = 12
Top = 1440
Width = 975
End
Begin VB.OptionButton Option10
Caption = "9"
Height = 375
Left = 2640
TabIndex = 11
Top = 960
Width = 975
End
Begin VB.OptionButton Option9
Caption = "8"
Height = 255
Left = 2640
TabIndex = 10
Top = 480
Width = 975
End
Begin VB.OptionButton Option8
Caption = "7"
Height = 375
Left = 1320
TabIndex = 9
Top = 1920
Width = 975
End
Begin VB.OptionButton Option7
Caption = "6"
Height = 255
Left = 1320
TabIndex = 8
Top = 1560
Width = 975
End
Begin VB.OptionButton Option6
Caption = "5"
Height = 375
Left = 1320
TabIndex = 7
Top = 1080
Width = 975
End
Begin VB.OptionButton Option5
Caption = "4"
Height = 255
Left = 1320
TabIndex = 6
Top = 480
Width = 975
End
Begin VB.OptionButton Option4
Caption = "3"
Height = 375
Left = 240
TabIndex = 5
Top = 1920
Width = 975
End
Begin VB.OptionButton Option3
Caption = "2"
Height = 255
Left = 240
TabIndex = 4
Top = 1440
Width = 975
End
Begin VB.OptionButton Option2
Caption = "1"
Height = 375
Left = 240
TabIndex = 3
Top = 960
Width = 975
End
Begin VB.OptionButton Option1
Caption = "0"
Height = 255
Left = 240
TabIndex = 2
Top = 480
Width = 975
End
End
Begin VB.Label Label1
Caption = "卡片密码设置"
Height = 375
Left = 2400
TabIndex = 0
Top = 240
Width = 2415
End
End
Attribute VB_Name = "mima"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Option1.Value = True Then
datasector = 0
End If
If Option2.Value = True Then
datasector = 1
End If
If Option3.Value = True Then
datasector = 2
End If
If Option4.Value = True Then
datasector = 3
End If
If Option5.Value = True Then
datasector = 4
End If
If Option6.Value = True Then
datasector = 5
End If
If Option7.Value = True Then
datasector = 6
End If
If Option8.Value = True Then
datasector = 7
End If
If Option9.Value = True Then
datasector = 8
End If
If Option10.Value = True Then
datasector = 9
End If
If Option11.Value = True Then
datasector = 10
End If
If Option12.Value = True Then
datasector = 11
End If
If Option13.Value = True Then
datasector = 12
End If
If Option14.Value = True Then
datasector = 13
End If
If Option15.Value = True Then
datasector = 14
End If
If Option16.Value = True Then
datasector = 15
End If
If Option17.Value = True Then
mimanum = 0
End If
If Option18.Value = True Then
mimanum = 1
End If
mimacode = Text1.Text
ans = 1
Unload Me
End Sub
Private Sub Command2_Click()
On Error Resume Next
ans = 0
mimanum = 0
mimacode = ""
datasector = 0
Unload Me
End Sub
Private Sub Form_Load()
Option1 = True
Option17 = True
Text1.Text = ""
Text2.Text = 0
Option19.Enabled = False
If mimaflag = 0 Then
Text1.Enabled = False
Text1.BackColor = &H808080
End If
End Sub
Private Sub Text1_Change()
If Len(Text1.Text) > 12 Then
MsgBox "输入长度过长!!!"
Else
Text2.Text = Int(Len(Text1.Text) / 2)
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -