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

📄 commport.frm

📁 Tektronix TDS3000&TDS3000B series oscilloscope program examples ver3.0
💻 FRM
字号:
VERSION 5.00
Begin VB.Form DlgCommPort 
   Caption         =   "Select Serial Port"
   ClientHeight    =   1440
   ClientLeft      =   48
   ClientTop       =   276
   ClientWidth     =   3852
   LinkTopic       =   "Form1"
   ScaleHeight     =   1440
   ScaleWidth      =   3852
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command1 
      Caption         =   "OK"
      Height          =   372
      Left            =   1320
      TabIndex        =   2
      Top             =   840
      Width           =   972
   End
   Begin VB.OptionButton RBCommPort 
      Caption         =   "COM2"
      Height          =   252
      Index           =   1
      Left            =   1920
      TabIndex        =   1
      Top             =   240
      Width           =   1452
   End
   Begin VB.OptionButton RBCommPort 
      Caption         =   "COM1"
      Height          =   252
      Index           =   0
      Left            =   240
      TabIndex        =   0
      Top             =   240
      Width           =   1452
   End
End
Attribute VB_Name = "DlgCommPort"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

'
' The user selected a serial port.  Put their
' selection in a global, we'll need it later.
'
Private Sub Command1_Click()
    If RBCommPort(0).Value Then
        theCommPort = 1
    Else
        theCommPort = 2
    End If
    
    frmtl.Show 0
    
    Unload DlgCommPort
End Sub

'
' Set the default serial port to COMM2
'
Private Sub Form_Load()
    RBCommPort(1).Value = True
    ATimeoutOccurred = False
End Sub

⌨️ 快捷键说明

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