strsetting.frm

来自「异步电机控制 异步电机控制 异步电机控制 异步电机控制」· FRM 代码 · 共 99 行

FRM
99
字号
VERSION 5.00
Begin VB.Form strsetting 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "设置参数"
   ClientHeight    =   3105
   ClientLeft      =   2760
   ClientTop       =   3750
   ClientWidth     =   4530
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3105
   ScaleWidth      =   4530
   ShowInTaskbar   =   0   'False
   Begin VB.Frame Frame1 
      Height          =   2175
      Left            =   240
      TabIndex        =   2
      Top             =   120
      Width           =   4215
      Begin VB.TextBox t2 
         Alignment       =   2  'Center
         Enabled         =   0   'False
         Height          =   495
         Left            =   2640
         TabIndex        =   6
         Top             =   1440
         Width           =   1215
      End
      Begin VB.TextBox t1 
         Alignment       =   2  'Center
         Height          =   375
         Left            =   2520
         TabIndex        =   4
         Top             =   240
         Width           =   1095
      End
      Begin VB.Label Label2 
         Alignment       =   2  'Center
         Caption         =   "串口设置(9600,n,8,1)"
         Height          =   375
         Left            =   240
         TabIndex        =   5
         Top             =   1560
         Width           =   2295
      End
      Begin VB.Label Label1 
         Alignment       =   2  'Center
         Caption         =   "所用串口(1,2,3,4)"
         Height          =   375
         Left            =   120
         TabIndex        =   3
         Top             =   360
         Width           =   2295
      End
   End
   Begin VB.CommandButton CancelButton 
      Caption         =   "取消"
      Height          =   375
      Left            =   2520
      TabIndex        =   1
      Top             =   2520
      Width           =   1215
   End
   Begin VB.CommandButton OKButton 
      Caption         =   "确定"
      Height          =   375
      Left            =   360
      TabIndex        =   0
      Top             =   2520
      Width           =   1215
   End
End
Attribute VB_Name = "strsetting"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Option Explicit

Private Sub CancelButton_Click()
Unload strsetting
End Sub
Private Sub OKButton_Click()
intport = Val(strsetting.t1.Text)
strset = strsetting.t2.Text
If Not frmm.mm.PortOpen Then
       frmm.mm.CommPort = intport
       frmm.mm.Settings = strset
       frmm.mm.PortOpen = True
End If
If Not blnreceiveflag Then
   frmm.mm.PortOpen = False
End If
strsetting.Hide
Unload strsetting
End Sub

⌨️ 快捷键说明

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