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

📄 form2.frm

📁 vb与台达PLC通讯实例。 利用vb的MSComm端口
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form2 
   Caption         =   "Form2"
   ClientHeight    =   9150
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   12675
   LinkTopic       =   "Form2"
   ScaleHeight     =   9150
   ScaleWidth      =   12675
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      Caption         =   "Frame1"
      Height          =   1575
      Left            =   600
      TabIndex        =   0
      Top             =   6360
      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 = "Form2"
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -