📄 frmmain.frm
字号:
VERSION 5.00
Begin VB.Form frmMain
BorderStyle = 3 'Fixed Dialog
Caption = "ISO7816-4"
ClientHeight = 6240
ClientLeft = 45
ClientTop = 330
ClientWidth = 7215
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6240
ScaleWidth = 7215
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin VB.Frame Frame2
Caption = "APDU应答"
Height = 2715
Left = 180
TabIndex = 22
Top = 3420
Width = 5355
Begin ISO7816.HexText HexRspBuf
Height = 1695
Left = 180
TabIndex = 29
Top = 900
Width = 4755
_ExtentX = 8387
_ExtentY = 2990
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.TextBox txtSW1
Height = 285
Left = 480
Locked = -1 'True
TabIndex = 24
Text = "90"
Top = 300
Width = 495
End
Begin VB.TextBox txtSW2
Height = 285
Left = 1500
Locked = -1 'True
TabIndex = 23
Text = "00"
Top = 300
Width = 495
End
Begin VB.Label Label5
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "数据"
Height = 180
Left = 180
TabIndex = 27
Top = 660
Width = 360
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "SW1"
Height = 180
Left = 180
TabIndex = 26
Top = 360
Width = 270
End
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "SW2"
Height = 180
Left = 1140
TabIndex = 25
Top = 360
Width = 270
End
End
Begin VB.Frame Frame1
Caption = "APDU指令"
Height = 2595
Left = 180
TabIndex = 8
Top = 720
Width = 5355
Begin ISO7816.HexText HexCmdBuf
Height = 1515
Left = 180
TabIndex = 28
Top = 900
Width = 4815
_ExtentX = 8493
_ExtentY = 2672
BufferSize = 2
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Text = "3F 00 "
End
Begin VB.TextBox txtCLA
Height = 330
Left = 540
MaxLength = 2
TabIndex = 14
Text = "00"
Top = 240
Width = 375
End
Begin VB.TextBox txtINS
Height = 330
Left = 1440
MaxLength = 2
TabIndex = 13
Text = "A4"
Top = 240
Width = 375
End
Begin VB.TextBox txtLC
Height = 330
Left = 3900
MaxLength = 2
TabIndex = 12
Text = "02"
Top = 240
Width = 375
End
Begin VB.TextBox txtLE
Height = 330
Left = 4680
MaxLength = 2
TabIndex = 11
Text = "00"
Top = 240
Width = 375
End
Begin VB.TextBox txtP2
Height = 330
Left = 3060
MaxLength = 2
TabIndex = 10
Text = "00"
Top = 240
Width = 375
End
Begin VB.TextBox txtP1
Height = 330
Left = 2280
MaxLength = 2
TabIndex = 9
Text = "00"
Top = 240
Width = 375
End
Begin VB.Label Label6
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "数据"
Height = 180
Left = 180
TabIndex = 21
Top = 660
Width = 360
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "CLA"
Height = 180
Left = 180
TabIndex = 20
Top = 300
Width = 270
End
Begin VB.Label Label7
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "INS"
Height = 180
Left = 1080
TabIndex = 19
Top = 300
Width = 270
End
Begin VB.Label Label8
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "LC"
Height = 180
Left = 3600
TabIndex = 18
Top = 300
Width = 180
End
Begin VB.Label Label9
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "LE"
Height = 180
Left = 4380
TabIndex = 17
Top = 300
Width = 180
End
Begin VB.Label Label10
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "P2"
Height = 180
Left = 2760
TabIndex = 16
Top = 300
Width = 180
End
Begin VB.Label Label11
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "P1"
Height = 180
Left = 1980
TabIndex = 15
Top = 300
Width = 180
End
End
Begin VB.CommandButton btnDisConnect
Caption = "下电"
Height = 495
Left = 5760
TabIndex = 7
Top = 2760
Width = 1155
End
Begin VB.ComboBox cmbProtocol
Height = 300
ItemData = "frmMain.frx":0000
Left = 720
List = "frmMain.frx":000A
Style = 2 'Dropdown List
TabIndex = 5
Top = 240
Width = 1875
End
Begin VB.CommandButton btnExecuteTpdu
Caption = "执行TPDU"
Height = 495
Left = 5760
TabIndex = 4
Top = 3420
Width = 1155
End
Begin VB.CommandButton btnCancel
Cancel = -1 'True
Caption = "取消"
Height = 495
Left = 5760
TabIndex = 3
Top = 5340
Width = 1155
End
Begin VB.CommandButton btnReConnect
Caption = "上电"
Height = 495
Left = 5760
TabIndex = 2
Top = 2100
Width = 1155
End
Begin VB.CommandButton btnExecuteApdu
Caption = "执行APDU"
Default = -1 'True
Height = 495
Left = 5760
TabIndex = 1
Top = 4080
Width = 1155
End
Begin VB.CommandButton btnReset
Caption = "热复位"
Height = 495
Left = 5760
TabIndex = 0
Top = 4740
Width = 1155
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "协议"
Height = 180
Left = 240
TabIndex = 6
Top = 300
Width = 360
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub btnCloseReader_Click()
SC_CloseReader hPort
End Sub
Private Sub btnCancel_Click()
Unload Me
End Sub
Private Sub btnDisConnect_Click()
If 0 = SC_DisConnect(hPort, 0) Then
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -