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

📄 frmconfig.frm

📁 这是我们当时计算机接口与通信课程的时候编的两个程序之一
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmConfig 
   Caption         =   "设置参数 021104123赵翰铭"
   ClientHeight    =   3210
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5445
   LinkTopic       =   "Form1"
   ScaleHeight     =   11115
   ScaleWidth      =   15240
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton cmdCancel 
      Caption         =   "取消"
      Height          =   375
      Left            =   3000
      TabIndex        =   10
      Top             =   2640
      Width           =   1095
   End
   Begin VB.CommandButton cmdOk 
      Caption         =   "确定"
      Height          =   375
      Left            =   1080
      TabIndex        =   9
      Top             =   2640
      Width           =   1095
   End
   Begin VB.Frame Frame1 
      Height          =   2415
      Left            =   240
      TabIndex        =   0
      Top             =   120
      Width           =   4935
      Begin VB.TextBox txtTime 
         Height          =   375
         Left            =   1440
         TabIndex        =   7
         Top             =   1560
         Width           =   1095
      End
      Begin VB.TextBox txtComString 
         Height          =   375
         Left            =   1440
         TabIndex        =   5
         Top             =   1080
         Width           =   1095
      End
      Begin VB.TextBox txtComPort 
         Height          =   375
         Left            =   1440
         TabIndex        =   2
         Top             =   480
         Width           =   1095
      End
      Begin VB.Label Label5 
         Caption         =   "ms 发送一次"
         Height          =   375
         Left            =   2760
         TabIndex        =   8
         Top             =   1560
         Width           =   1215
      End
      Begin VB.Label Label4 
         Caption         =   "发送时间间隔:"
         Height          =   375
         Left            =   240
         TabIndex        =   6
         Top             =   1560
         Width           =   1215
      End
      Begin VB.Label Label3 
         Caption         =   "串口设置:"
         Height          =   375
         Left            =   240
         TabIndex        =   4
         Top             =   1080
         Width           =   975
      End
      Begin VB.Label Label2 
         Caption         =   "所选串口:(1,2,3,4)"
         Height          =   375
         Left            =   2760
         TabIndex        =   3
         Top             =   480
         Width           =   1935
      End
      Begin VB.Label Label1 
         Caption         =   "串口选择:"
         Height          =   375
         Left            =   240
         TabIndex        =   1
         Top             =   480
         Width           =   975
      End
   End
End
Attribute VB_Name = "frmConfig"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
    Unload frmConfig
End Sub

Private Sub cmdOk_Click()
    Call frmMain.SetComm(txtComString, txtComPort, 4096)
    frmMain.Timer1.Interval = txtTime
    Unload frmConfig
End Sub

Private Sub Form_Load()
txtComPort.Text = frmMain.GetCommPort
txtComString.Text = frmMain.GetSettings
txtTime = frmMain.Timer1.Interval
End Sub

⌨️ 快捷键说明

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