frmmanner.frm

来自「这是一个简单的串口通信程序,可以实现简单的发送和接受功能,源程序来自网络~」· FRM 代码 · 共 80 行

FRM
80
字号
VERSION 5.00
Begin VB.Form frmManner 
   Caption         =   "发送方式"
   ClientHeight    =   2880
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4335
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   ScaleHeight     =   2880
   ScaleWidth      =   4335
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "退出"
      Height          =   375
      Left            =   2880
      TabIndex        =   4
      Top             =   2400
      Width           =   1335
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   375
      Left            =   120
      TabIndex        =   3
      Top             =   2400
      Width           =   1335
   End
   Begin VB.Frame Frame1 
      Caption         =   "请选择"
      Height          =   1935
      Left            =   120
      TabIndex        =   0
      Top             =   240
      Width           =   4095
      Begin VB.OptionButton Opt 
         Caption         =   "不显示发送内容"
         Height          =   375
         Index           =   0
         Left            =   1320
         TabIndex        =   2
         Top             =   480
         Width           =   2295
      End
      Begin VB.OptionButton Opt 
         Caption         =   "显示发送内容"
         Height          =   375
         Index           =   1
         Left            =   1320
         TabIndex        =   1
         Top             =   1080
         Value           =   -1  'True
         Width           =   1935
      End
   End
End
Attribute VB_Name = "frmManner"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
    If Opt(0).Value = True Then
        xianshi = False
    End If
    If Opt(1).Value = True Then
        xianshi = True
    End If
    Unload Me
    
End Sub

Private Sub Command2_Click()
    Unload Me
End Sub

Private Sub Form_Unload(Cancel As Integer)
    Command2_Click
End Sub

⌨️ 快捷键说明

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