📄 form1.vb
字号:
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.
<System.Diagnostics.DebuggerStepThrough()> 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抯 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抯 outside the form. You can attach scroll bars to the" & _
" form, but that doesn抰 really help梬ho 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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -