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

📄 tstdock.vb

📁 <Visual Basic 数据库开发实例精粹(第二版)>一书首先介绍了Visual Basic(简称VB)开发的技巧和重点技术
💻 VB
字号:
Public Class tstDock
    Inherits System.Windows.Forms.Form

#Region " Windows 窗体设计器生成的代码 "

    Public Sub New()
        MyBase.New()

        '该调用是 Windows 窗体设计器所必需的。
        InitializeComponent()

        '在 InitializeComponent() 调用之后添加任何初始化

    End Sub

    '窗体重写 dispose 以清理组件列表。
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Windows 窗体设计器所必需的
    Private components As System.ComponentModel.IContainer

    '注意: 以下过程是 Windows 窗体设计器所必需的
    '可以使用 Windows 窗体设计器修改此过程。
    '不要使用代码编辑器修改它。
  Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu
  Friend WithEvents MenuItem1 As System.Windows.Forms.MenuItem
  Friend WithEvents MenuItem2 As System.Windows.Forms.MenuItem
  Friend WithEvents ToolBar1 As System.Windows.Forms.ToolBar
  Friend WithEvents ToolBarButton1 As System.Windows.Forms.ToolBarButton
  Friend WithEvents ToolBarButton2 As System.Windows.Forms.ToolBarButton
  Friend WithEvents ToolBarButton3 As System.Windows.Forms.ToolBarButton
  Friend WithEvents ToolBarButton4 As System.Windows.Forms.ToolBarButton
  Friend WithEvents ToolBarButton5 As System.Windows.Forms.ToolBarButton
  Friend WithEvents StatusBar1 As System.Windows.Forms.StatusBar
  Friend WithEvents Panel1 As System.Windows.Forms.Panel
  Friend WithEvents TreeView1 As System.Windows.Forms.TreeView
  Friend WithEvents Splitter1 As System.Windows.Forms.Splitter
  Friend WithEvents palRight As System.Windows.Forms.Panel
  Friend WithEvents ListView1 As System.Windows.Forms.ListView
  Friend WithEvents Panel2 As System.Windows.Forms.Panel
  Friend WithEvents LinkLabel1 As System.Windows.Forms.LinkLabel
  Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
  Friend WithEvents Splitter3 As System.Windows.Forms.Splitter
  Friend WithEvents Panel3 As System.Windows.Forms.Panel
  <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
    Me.MainMenu1 = New System.Windows.Forms.MainMenu
    Me.MenuItem1 = New System.Windows.Forms.MenuItem
    Me.MenuItem2 = New System.Windows.Forms.MenuItem
    Me.ToolBar1 = New System.Windows.Forms.ToolBar
    Me.ToolBarButton1 = New System.Windows.Forms.ToolBarButton
    Me.ToolBarButton2 = New System.Windows.Forms.ToolBarButton
    Me.ToolBarButton3 = New System.Windows.Forms.ToolBarButton
    Me.ToolBarButton4 = New System.Windows.Forms.ToolBarButton
    Me.ToolBarButton5 = New System.Windows.Forms.ToolBarButton
    Me.StatusBar1 = New System.Windows.Forms.StatusBar
    Me.Panel1 = New System.Windows.Forms.Panel
    Me.TreeView1 = New System.Windows.Forms.TreeView
    Me.Splitter1 = New System.Windows.Forms.Splitter
    Me.palRight = New System.Windows.Forms.Panel
    Me.ListView1 = New System.Windows.Forms.ListView
    Me.Panel2 = New System.Windows.Forms.Panel
    Me.LinkLabel1 = New System.Windows.Forms.LinkLabel
    Me.TextBox1 = New System.Windows.Forms.TextBox
    Me.Splitter3 = New System.Windows.Forms.Splitter
    Me.Panel3 = New System.Windows.Forms.Panel
    Me.palRight.SuspendLayout()
    Me.Panel2.SuspendLayout()
    Me.Panel3.SuspendLayout()
    Me.SuspendLayout()
    '
    'MainMenu1
    '
    Me.MainMenu1.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem1})
    '
    'MenuItem1
    '
    Me.MenuItem1.Index = 0
    Me.MenuItem1.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem2})
    Me.MenuItem1.Text = "文件"
    '
    'MenuItem2
    '
    Me.MenuItem2.Index = 0
    Me.MenuItem2.Text = "关闭"
    '
    'ToolBar1
    '
    Me.ToolBar1.Buttons.AddRange(New System.Windows.Forms.ToolBarButton() {Me.ToolBarButton1, Me.ToolBarButton2, Me.ToolBarButton3, Me.ToolBarButton4, Me.ToolBarButton5})
    Me.ToolBar1.ButtonSize = New System.Drawing.Size(50, 40)
    Me.ToolBar1.DropDownArrows = True
    Me.ToolBar1.Location = New System.Drawing.Point(0, 0)
    Me.ToolBar1.Name = "ToolBar1"
    Me.ToolBar1.ShowToolTips = True
    Me.ToolBar1.Size = New System.Drawing.Size(579, 46)
    Me.ToolBar1.TabIndex = 0
    '
    'StatusBar1
    '
    Me.StatusBar1.Location = New System.Drawing.Point(0, 419)
    Me.StatusBar1.Name = "StatusBar1"
    Me.StatusBar1.Size = New System.Drawing.Size(579, 22)
    Me.StatusBar1.TabIndex = 1
    Me.StatusBar1.Text = "StatusBar1"
    '
    'Panel1
    '
    Me.Panel1.Dock = System.Windows.Forms.DockStyle.Top
    Me.Panel1.Location = New System.Drawing.Point(0, 46)
    Me.Panel1.Name = "Panel1"
    Me.Panel1.Size = New System.Drawing.Size(579, 34)
    Me.Panel1.TabIndex = 4
    '
    'TreeView1
    '
    Me.TreeView1.ImageIndex = -1
    Me.TreeView1.Location = New System.Drawing.Point(35, 31)
    Me.TreeView1.Name = "TreeView1"
    Me.TreeView1.SelectedImageIndex = -1
    Me.TreeView1.Size = New System.Drawing.Size(137, 108)
    Me.TreeView1.TabIndex = 6
    '
    'Splitter1
    '
    Me.Splitter1.Location = New System.Drawing.Point(191, 80)
    Me.Splitter1.Name = "Splitter1"
    Me.Splitter1.Size = New System.Drawing.Size(10, 339)
    Me.Splitter1.TabIndex = 7
    Me.Splitter1.TabStop = False
    '
    'palRight
    '
    Me.palRight.Controls.Add(Me.Panel2)
    Me.palRight.Controls.Add(Me.Splitter3)
    Me.palRight.Controls.Add(Me.ListView1)
    Me.palRight.Dock = System.Windows.Forms.DockStyle.Fill
    Me.palRight.Location = New System.Drawing.Point(201, 80)
    Me.palRight.Name = "palRight"
    Me.palRight.Size = New System.Drawing.Size(378, 339)
    Me.palRight.TabIndex = 8
    '
    'ListView1
    '
    Me.ListView1.Dock = System.Windows.Forms.DockStyle.Top
    Me.ListView1.Location = New System.Drawing.Point(0, 0)
    Me.ListView1.Name = "ListView1"
    Me.ListView1.Size = New System.Drawing.Size(378, 119)
    Me.ListView1.TabIndex = 0
    '
    'Panel2
    '
    Me.Panel2.Controls.Add(Me.TextBox1)
    Me.Panel2.Controls.Add(Me.LinkLabel1)
    Me.Panel2.Dock = System.Windows.Forms.DockStyle.Fill
    Me.Panel2.Location = New System.Drawing.Point(0, 135)
    Me.Panel2.Name = "Panel2"
    Me.Panel2.Size = New System.Drawing.Size(378, 204)
    Me.Panel2.TabIndex = 1
    '
    'LinkLabel1
    '
    Me.LinkLabel1.BackColor = System.Drawing.SystemColors.Desktop
    Me.LinkLabel1.Dock = System.Windows.Forms.DockStyle.Top
    Me.LinkLabel1.Location = New System.Drawing.Point(0, 0)
    Me.LinkLabel1.Name = "LinkLabel1"
    Me.LinkLabel1.Size = New System.Drawing.Size(378, 20)
    Me.LinkLabel1.TabIndex = 0
    Me.LinkLabel1.TabStop = True
    Me.LinkLabel1.Text = "LinkLabel1"
    '
    'TextBox1
    '
    Me.TextBox1.Dock = System.Windows.Forms.DockStyle.Fill
    Me.TextBox1.Location = New System.Drawing.Point(0, 20)
    Me.TextBox1.Multiline = True
    Me.TextBox1.Name = "TextBox1"
    Me.TextBox1.Size = New System.Drawing.Size(378, 184)
    Me.TextBox1.TabIndex = 1
    Me.TextBox1.Text = "TextBox1"
    '
    'Splitter3
    '
    Me.Splitter3.Dock = System.Windows.Forms.DockStyle.Top
    Me.Splitter3.Location = New System.Drawing.Point(0, 119)
    Me.Splitter3.Name = "Splitter3"
    Me.Splitter3.Size = New System.Drawing.Size(378, 16)
    Me.Splitter3.TabIndex = 2
    Me.Splitter3.TabStop = False
    '
    'Panel3
    '
    Me.Panel3.Controls.Add(Me.TreeView1)
    Me.Panel3.Dock = System.Windows.Forms.DockStyle.Left
    Me.Panel3.Location = New System.Drawing.Point(0, 80)
    Me.Panel3.Name = "Panel3"
    Me.Panel3.Size = New System.Drawing.Size(191, 339)
    Me.Panel3.TabIndex = 9
    '
    'tstDock
    '
    Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
    Me.ClientSize = New System.Drawing.Size(579, 441)
    Me.Controls.Add(Me.palRight)
    Me.Controls.Add(Me.Splitter1)
    Me.Controls.Add(Me.Panel3)
    Me.Controls.Add(Me.Panel1)
    Me.Controls.Add(Me.StatusBar1)
    Me.Controls.Add(Me.ToolBar1)
    Me.Menu = Me.MainMenu1
    Me.Name = "tstDock"
    Me.Text = "tstDock"
    Me.palRight.ResumeLayout(False)
    Me.Panel2.ResumeLayout(False)
    Me.Panel3.ResumeLayout(False)
    Me.ResumeLayout(False)

  End Sub

#End Region

  Private Sub tstDock_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

  End Sub
End Class

⌨️ 快捷键说明

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