© 2004 Microsoft Corporation. All rights reserved.
Figure 3 MasterForm Source Code
Friend WithEvents TabPage1 As System.Windows.Forms.TabPage
Friend WithEvents TabPage2 As System.Windows.Forms.TabPage
Friend WithEvents TabPage3 As System.Windows.Forms.TabPage
Friend WithEvents cmdHide2 As System.Windows.Forms.Button
Friend WithEvents cmdHide3 As System.Windows.Forms.Button
Friend WithEvents cmdAdd2 As System.Windows.Forms.Button
Protected WithEvents TabControl1 As System.Windows.Forms.TabControl
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
    Me.TabControl1 = New System.Windows.Forms.TabControl()
    Me.TabPage1 = New System.Windows.Forms.TabPage()
    Me.TabPage2 = New System.Windows.Forms.TabPage()
    Me.TabPage3 = New System.Windows.Forms.TabPage()
    Me.cmdHide2 = New System.Windows.Forms.Button()
    Me.cmdHide3 = New System.Windows.Forms.Button()
    Me.cmdAdd2 = New System.Windows.Forms.Button()
    Me.TabControl1.SuspendLayout()
    Me.SuspendLayout()
    '
    'TabControl1
    '
    Me.TabControl1.Controls.AddRange(New System.Windows.Forms.Control() 
      {Me.TabPage1, Me.TabPage2, Me.TabPage3})
    Me.TabControl1.Location = New System.Drawing.Point(64, 32)
    Me.TabControl1.Name = "TabControl1"
    Me.TabControl1.SelectedIndex = 0
    Me.TabControl1.Size = New System.Drawing.Size(400, 200)
    Me.TabControl1.TabIndex = 0
    '
    'TabPage1
    '
    Me.TabPage1.Location = New System.Drawing.Point(4, 22)
    Me.TabPage1.Name = "TabPage1"
    Me.TabPage1.Size = New System.Drawing.Size(392, 174)
    Me.TabPage1.TabIndex = 0
    Me.TabPage1.Text = "TabPage1"
    '
    'TabPage2
    '
    Me.TabPage2.Location = New System.Drawing.Point(4, 22)
    Me.TabPage2.Name = "TabPage2"
    Me.TabPage2.Size = New System.Drawing.Size(392, 174)
    Me.TabPage2.TabIndex = 1
    Me.TabPage2.Text = "TabPage2"
    '
    'TabPage3
    '
    Me.TabPage3.Location = New System.Drawing.Point(4, 22)
    Me.TabPage3.Name = "TabPage3"
    Me.TabPage3.Size = New System.Drawing.Size(392, 174)
    Me.TabPage3.TabIndex = 2
    Me.TabPage3.Text = "TabPage3"
    '
    'cmdHide2
    '
    Me.cmdHide2.Location = New System.Drawing.Point(480, 32)
    Me.cmdHide2.Name = "cmdHide2"
    Me.cmdHide2.TabIndex = 1
    Me.cmdHide2.Text = "Hide 2"
    '
    'cmdHide3
    '
    Me.cmdHide3.Location = New System.Drawing.Point(480, 64)
    Me.cmdHide3.Name = "cmdHide3"
    Me.cmdHide3.TabIndex = 2
    Me.cmdHide3.Text = "Hide 3"
    '
    'cmdAdd2
    '
    Me.cmdAdd2.Location = New System.Drawing.Point(480, 128)
    Me.cmdAdd2.Name = "cmdAdd2"
    Me.cmdAdd2.TabIndex = 3
    Me.cmdAdd2.Text = "Add 2"
    '
    'MasterForm
    '
    Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
    Me.ClientSize = New System.Drawing.Size(600, 302)
    Me.Controls.AddRange(New System.Windows.Forms.Control() 
      {Me.cmdAdd2, Me.cmdHide3, Me.cmdHide2, Me.TabControl1})
    Me.Name = "MasterForm"
    Me.Text = "MasterForm"
    Me.TabControl1.ResumeLayout(False)
    Me.ResumeLayout(False)

    End Sub

#End Region

MSDN Magazine Blog

MSDN Magazine Right Rail

14 Top Features of Visual Basic 14: The Q&A
Leading off the feature in the January issue of MSDN Magazine is Lucian Wischik’s fantastic look at Visual Basic .NET 14. As Wischik writes, the newes... More...
Wednesday, Jan 7
Big Start to the New Year at MSDN Magazine
Folks, things are hopping over here at MSDN Magazine. We are kicking off the new year with a pair of issues: Our regularly scheduled January issue and... More...
Friday, Jan 2

More MSDN Magazine Blog entries >


Receive the MSDN Flash e-mail newsletter every other week, with news and information personalized to your interests and areas of focus.