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

📄 form1.frm

📁 下载后
💻 FRM
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   4836
   ClientLeft      =   48
   ClientTop       =   276
   ClientWidth     =   6180
   LinkTopic       =   "Form1"
   ScaleHeight     =   4836
   ScaleWidth      =   6180
   StartUpPosition =   3  'Windows Default
   Begin VB.Frame TFrame 
      Caption         =   "Frame2"
      Height          =   1932
      Index           =   1
      Left            =   3600
      TabIndex        =   2
      Top             =   1200
      Width           =   2292
      Begin VB.TextBox Text1 
         Height          =   492
         Left            =   120
         TabIndex        =   5
         Text            =   "Text1"
         Top             =   480
         Width           =   1572
      End
   End
   Begin VB.Frame TFrame 
      Caption         =   "Frame1"
      Height          =   2292
      Index           =   0
      Left            =   480
      TabIndex        =   1
      Top             =   1200
      Width           =   2892
      Begin VB.CommandButton Command1 
         Caption         =   "Command1"
         Height          =   372
         Left            =   480
         TabIndex        =   4
         Top             =   600
         Width           =   1332
      End
   End
   Begin VB.Frame TFrame 
      Caption         =   "Frame3"
      Height          =   1092
      Index           =   2
      Left            =   3480
      TabIndex        =   3
      Top             =   3360
      Width           =   2412
      Begin VB.ListBox List1 
         Height          =   432
         Left            =   120
         TabIndex        =   6
         Top             =   240
         Width           =   1332
      End
   End
   Begin MSComctlLib.TabStrip TabStrip1 
      Height          =   3972
      Left            =   360
      TabIndex        =   0
      Top             =   600
      Width           =   5652
      _ExtentX        =   9970
      _ExtentY        =   7006
      _Version        =   393216
      BeginProperty Tabs {1EFB6598-857C-11D1-B16A-00C0F0283628} 
         NumTabs         =   3
         BeginProperty Tab1 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
            Caption         =   "Tab 1"
            ImageVarType    =   2
         EndProperty
         BeginProperty Tab2 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
            Caption         =   "Tab 2"
            ImageVarType    =   2
         EndProperty
         BeginProperty Tab3 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
            Caption         =   "Tab 3"
            ImageVarType    =   2
         EndProperty
      EndProperty
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Form_Load()
    Dim i As Integer
    TFrame(0).Visible = True
    For i = 2 To TabStrip1.Tabs.Count
        TFrame(i - 1).Visible = False
    Next
End Sub

Private Sub TabStrip1_Click()
    Dim i As Integer
    For i = 1 To TabStrip1.Tabs.Count
        If TabStrip1.SelectedItem.Index = i Then
            TFrame(i - 1).Visible = True
        Else
            TFrame(i - 1).Visible = False
        End If
    Next
End Sub

⌨️ 快捷键说明

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