form4.frm

来自「vb与台达PLC通讯实例。 利用vb的MSComm端口」· FRM 代码 · 共 82 行

FRM
82
字号
VERSION 5.00
Begin VB.Form Form4 
   Caption         =   "Form4"
   ClientHeight    =   7755
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   12255
   LinkTopic       =   "Form4"
   ScaleHeight     =   7755
   ScaleWidth      =   12255
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      Caption         =   "Frame1"
      Height          =   1575
      Left            =   480
      TabIndex        =   0
      Top             =   5040
      Width           =   10815
      Begin VB.CommandButton Co1 
         Caption         =   "1"
         Height          =   735
         Index           =   0
         Left            =   360
         TabIndex        =   4
         Top             =   480
         Width           =   1575
      End
      Begin VB.CommandButton Co1 
         Caption         =   "2"
         Height          =   735
         Index           =   1
         Left            =   2160
         TabIndex        =   3
         Top             =   480
         Width           =   1575
      End
      Begin VB.CommandButton Co1 
         Caption         =   "3"
         Height          =   735
         Index           =   2
         Left            =   3960
         TabIndex        =   2
         Top             =   480
         Width           =   1575
      End
      Begin VB.CommandButton Co1 
         Caption         =   "4"
         Height          =   735
         Index           =   3
         Left            =   5760
         TabIndex        =   1
         Top             =   480
         Width           =   1575
      End
   End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Co1_Click(Index As Integer)
Select Case Index >= 0
Case Index = 0
     Unload Me
     Form1.Show
Case Index = 1
     Unload Me
     Form2.Show
Case Index = 2
     Unload Me
     Form3.Show
Case Index = 3
     
     Unload Me
     Form4.Show
Case Else
  Print Index
End Select

End Sub

⌨️ 快捷键说明

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