⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chsettingform.frm

📁 vb控制
💻 FRM
字号:
VERSION 5.00
Begin VB.Form ChSettingForm 
   Caption         =   "Channel Setting (Four Channels)"
   ClientHeight    =   3075
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3075
   ScaleWidth      =   4680
   StartUpPosition =   1  'CenterOwner
   Begin VB.CommandButton OKBtn 
      Caption         =   "OK"
      Height          =   375
      Left            =   1680
      TabIndex        =   19
      Top             =   2520
      Width           =   1215
   End
   Begin VB.ComboBox RefGND 
      Height          =   315
      Index           =   3
      Left            =   3120
      TabIndex        =   17
      Text            =   "Combo1"
      Top             =   1920
      Width           =   1215
   End
   Begin VB.ComboBox RefGND 
      Height          =   315
      Index           =   2
      Left            =   3120
      TabIndex        =   16
      Text            =   "Combo1"
      Top             =   1440
      Width           =   1215
   End
   Begin VB.ComboBox RefGND 
      Height          =   315
      Index           =   1
      Left            =   3120
      TabIndex        =   15
      Text            =   "Combo1"
      Top             =   960
      Width           =   1215
   End
   Begin VB.ComboBox RefGND 
      Height          =   315
      Index           =   0
      Left            =   3120
      TabIndex        =   14
      Text            =   "Combo1"
      Top             =   480
      Width           =   1215
   End
   Begin VB.ComboBox Range 
      Height          =   315
      Index           =   3
      Left            =   1560
      TabIndex        =   7
      Text            =   "Combo1"
      Top             =   1920
      Width           =   1455
   End
   Begin VB.ComboBox Range 
      Height          =   315
      Index           =   2
      Left            =   1560
      TabIndex        =   6
      Text            =   "Combo1"
      Top             =   1440
      Width           =   1455
   End
   Begin VB.ComboBox Range 
      Height          =   315
      Index           =   1
      Left            =   1560
      TabIndex        =   5
      Text            =   "Combo1"
      Top             =   960
      Width           =   1455
   End
   Begin VB.ComboBox Range 
      Height          =   315
      Index           =   0
      Left            =   1560
      TabIndex        =   4
      Text            =   "Combo1"
      Top             =   480
      Width           =   1455
   End
   Begin VB.TextBox ChNo 
      Height          =   285
      Index           =   3
      Left            =   720
      TabIndex        =   3
      Text            =   "3"
      Top             =   1920
      Width           =   735
   End
   Begin VB.TextBox ChNo 
      Height          =   285
      Index           =   2
      Left            =   720
      TabIndex        =   2
      Text            =   "2"
      Top             =   1440
      Width           =   735
   End
   Begin VB.TextBox ChNo 
      Height          =   285
      Index           =   1
      Left            =   720
      TabIndex        =   1
      Text            =   "1"
      Top             =   960
      Width           =   735
   End
   Begin VB.TextBox ChNo 
      Height          =   285
      Index           =   0
      Left            =   720
      TabIndex        =   0
      Text            =   "0"
      Top             =   480
      Width           =   735
   End
   Begin VB.Label Label3 
      Caption         =   "Ref. GND"
      Height          =   255
      Left            =   3120
      TabIndex        =   18
      Top             =   240
      Width           =   1215
   End
   Begin VB.Label Label2 
      Caption         =   "Ch. No :"
      Height          =   255
      Left            =   720
      TabIndex        =   13
      Top             =   240
      Width           =   615
   End
   Begin VB.Label Label1 
      Caption         =   "Range :"
      Height          =   255
      Left            =   1680
      TabIndex        =   12
      Top             =   240
      Width           =   1095
   End
   Begin VB.Label ChName 
      Caption         =   "4th CH"
      Height          =   255
      Index           =   3
      Left            =   0
      TabIndex        =   11
      Top             =   1920
      Width           =   495
   End
   Begin VB.Label ChName 
      Caption         =   "3rd CH"
      Height          =   255
      Index           =   2
      Left            =   0
      TabIndex        =   10
      Top             =   1440
      Width           =   735
   End
   Begin VB.Label ChName 
      Caption         =   "2nd CH"
      Height          =   255
      Index           =   1
      Left            =   0
      TabIndex        =   9
      Top             =   960
      Width           =   735
   End
   Begin VB.Label ChName 
      Caption         =   "1st CH"
      Height          =   255
      Index           =   0
      Left            =   0
      TabIndex        =   8
      Top             =   480
      Width           =   615
   End
End
Attribute VB_Name = "ChSettingForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Dim i As Integer

For i = 0 To 3 Step 1
    Range(i).AddItem "AD_B_10_V"
    Range(i).AddItem "AD_B_5_V"
    Range(i).AddItem "AD_B_2_5_V"
    Range(i).AddItem "AD_B_1_25_V"
    Range(i).AddItem "AD_U_10_V"
    Range(i).AddItem "AD_U_5_V"
    Range(i).AddItem "AD_U_2_5_V"
    Range(i).AddItem "AD_U_1_25_V"
    Range(i).ListIndex = 0
Next

For i = 0 To 3 Step 1
    RefGND(i).AddItem "Ref. SE"
    RefGND(i).AddItem "Differential"
    RefGND(i).AddItem "Non-Ref. SE"
    RefGND(i).ListIndex = 0
Next

End Sub

Private Sub OKBtn_Click()
Dim i As Integer

For i = 0 To 3 Step 1
ch_num(i) = CInt(ChNo(i).Text)
ch_range(i) = Range(i).ListIndex
If ch_range(i) > 3 Then
    ch_range(i) = ch_range(i) + 11
Else
    ch_range(i) = ch_range(i) + 1
End If
ch_ref(i) = RefGND(i).ListIndex
Next
Unload ChSettingForm
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -