📄 base2205.frm
字号:
VERSION 5.00
Begin VB.Form SettingForm
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "Card Number Setting"
ClientHeight = 1665
ClientLeft = 4590
ClientTop = 4545
ClientWidth = 2820
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
LinkTopic = "Form2"
PaletteMode = 1 'UseZOrder
ScaleHeight = 1665
ScaleWidth = 2820
Begin VB.ComboBox CardType
Appearance = 0 'Flat
Height = 315
Left = 1320
Style = 2 'Dropdown List
TabIndex = 4
Top = 120
Width = 1395
End
Begin VB.CommandButton OKBtn
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "OK"
Default = -1 'True
Height = 315
Left = 240
TabIndex = 0
Top = 1200
Width = 915
End
Begin VB.CommandButton CancelBtn
Appearance = 0 'Flat
BackColor = &H80000005&
Cancel = -1 'True
Caption = "Cancel"
Height = 315
Left = 1560
TabIndex = 3
Top = 1200
Width = 915
End
Begin VB.ComboBox CardNum
Appearance = 0 'Flat
Height = 315
Left = 1320
Style = 2 'Dropdown List
TabIndex = 2
Top = 600
Width = 1395
End
Begin VB.Label Label2
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "Card Type:"
ForeColor = &H00000000&
Height = 195
Index = 1
Left = 120
TabIndex = 5
Top = 180
Width = 1155
End
Begin VB.Label Label2
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "Card Number:"
ForeColor = &H00000000&
Height = 195
Index = 0
Left = 120
TabIndex = 1
Top = 600
Width = 1275
End
End
Attribute VB_Name = "SettingForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CancelBtn_Click()
Unload SettingForm
End Sub
Private Sub Form_Load()
Dim i As Long
'循环加入卡编号
For i = 0 To 15 Step 1
CardNum.AddItem i
Next
'默认将编号付值为0
CardNum.ListIndex = 0
'插入卡型号
CardType.AddItem "DAQ-2205"
CardType.AddItem "DAQ-2206"
CardType.AddItem "DAQ-2213"
CardType.AddItem "DAQ-2214"
'默认将型号付值为0(第一个)
CardType.ListIndex = 0
End Sub
Private Sub OKBtn_Click()
card = -1
card_number = CardNum.ListIndex
card_type = CardType.ListIndex
Select Case card_type
Case 0:
card_type = DAQ_2205
Case 1:
card_type = DAQ_2206
Case 2:
card_type = DAQ_2213
Case 3:
card_type = DAQ_2214
End Select
card = D2K_Register_Card(card_type, card_number)
Unload SettingForm
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -