Public Class Form1 Inherits System.Windows.Forms.Form #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub 'Form overrides dispose to clean up the component list. 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 Friend WithEvents TextBox1 As System.Windows.Forms.TextBox Friend WithEvents Splitter1 As System.Windows.Forms.Splitter Friend WithEvents TextBox2 As System.Windows.Forms.TextBox 'Required by the Windows Form Designer Private components As System.ComponentModel.Container 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. 'Do not modify it using the code editor. Private Sub InitializeComponent() Me.TextBox1 = New System.Windows.Forms.TextBox() Me.Splitter1 = New System.Windows.Forms.Splitter() Me.TextBox2 = New System.Windows.Forms.TextBox() Me.SuspendLayout() ' 'TextBox1 ' Me.TextBox1.BackColor = System.Drawing.Color.FromArgb(CType(255, Byte), CType(255, Byte), CType(128, Byte)) Me.TextBox1.Dock = System.Windows.Forms.DockStyle.Left Me.TextBox1.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.TextBox1.Multiline = True Me.TextBox1.Name = "TextBox1" Me.TextBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical Me.TextBox1.Size = New System.Drawing.Size(168, 325) Me.TextBox1.TabIndex = 0 Me.TextBox1.Text = "One of the most tedious tasks in designing user interfaces with Visual Basic befo" & _ "re VB.NET was the proper arrangement of the controls on the form, especially on " & _ "forms that users were allowed to resize at runtime. You design a nice form for a" & _ " given size, and when it’s resized at runtime, the controls are all clustered in" & _ " the top-left corner. A TextBox control that covered the entire width of the for" & _ "m at design time suddenly ""cringes"" on the left when the user drags out the wind" & _ "ow. If the user makes the form smaller than the default size, part of the TextBo" & _ "x is invisible, because it’s outside the form. You can attach scroll bars to the" & _ " form, but that doesn’t really help—who wants to type text and have to scroll th" & _ "e form horizontally? It makes sense to scroll vertically, because you get to see" & _ " many lines at once, but if the TextBox control is wider that the form, you can’" & _ "t see an entire line." ' 'Splitter1 ' Me.Splitter1.Location = New System.Drawing.Point(168, 0) Me.Splitter1.Name = "Splitter1" Me.Splitter1.Size = New System.Drawing.Size(3, 325) Me.Splitter1.TabIndex = 1 Me.Splitter1.TabStop = False ' 'TextBox2 ' Me.TextBox2.BackColor = System.Drawing.Color.Maroon Me.TextBox2.Dock = System.Windows.Forms.DockStyle.Fill Me.TextBox2.Font = New System.Drawing.Font("Courier New", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.TextBox2.ForeColor = System.Drawing.Color.Yellow Me.TextBox2.Location = New System.Drawing.Point(171, 0) Me.TextBox2.Multiline = True Me.TextBox2.Name = "TextBox2" Me.TextBox2.ScrollBars = System.Windows.Forms.ScrollBars.Vertical Me.TextBox2.Size = New System.Drawing.Size(385, 325) Me.TextBox2.TabIndex = 2 Me.TextBox2.Text = "One of the most tedious tasks in designing user interfaces with Visual Basic befo" & _ "re VB.NET was the proper arrangement of the controls on the form, especially on " & _ "forms that users were allowed to resize at runtime. You design a nice form for a" & _ " given size, and when it’s resized at runtime, the controls are all clustered in" & _ " the top-left corner. A TextBox control that covered the entire width of the for" & _ "m at design time suddenly ""cringes"" on the left when the user drags out the wind" & _ "ow. If the user makes the form smaller than the default size, part of the TextBo" & _ "x is invisible, because it’s outside the form. You can attach scroll bars to the" & _ " form, but that doesn’t really help—who wants to type text and have to scroll th" & _ "e form horizontally? It makes sense to scroll vertically, because you get to see" & _ " many lines at once, but if the TextBox control is wider that the form, you can’" & _ "t see an entire line." ' 'Form1 ' Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13) Me.BackColor = System.Drawing.SystemColors.ActiveCaptionText Me.ClientSize = New System.Drawing.Size(556, 325) Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.TextBox2, Me.Splitter1, Me.TextBox1}) Me.Name = "Form1" Me.Text = "Splitter Control Demo" Me.ResumeLayout(False) End Sub #End Region End Class