?? form1.vb
字號:
Public Class Form1
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 BT1 As System.Windows.Forms.Button
Friend WithEvents BT2 As System.Windows.Forms.Button
Friend WithEvents TextB As System.Windows.Forms.TextBox
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.TextB = New System.Windows.Forms.TextBox
Me.BT1 = New System.Windows.Forms.Button
Me.BT2 = New System.Windows.Forms.Button
Me.SuspendLayout()
'
'TextB
'
Me.TextB.Location = New System.Drawing.Point(48, 32)
Me.TextB.Name = "TextB"
Me.TextB.Size = New System.Drawing.Size(184, 21)
Me.TextB.TabIndex = 0
Me.TextB.Text = ""
'
'BT1
'
Me.BT1.Location = New System.Drawing.Point(32, 136)
Me.BT1.Name = "BT1"
Me.BT1.TabIndex = 1
Me.BT1.Text = "單擊我"
'
'BT2
'
Me.BT2.Location = New System.Drawing.Point(168, 136)
Me.BT2.Name = "BT2"
Me.BT2.TabIndex = 2
Me.BT2.Text = "顯示"
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
Me.ClientSize = New System.Drawing.Size(292, 266)
Me.Controls.Add(Me.BT2)
Me.Controls.Add(Me.BT1)
Me.Controls.Add(Me.TextB)
Me.Name = "Form1"
Me.Text = "Form1"
Me.ResumeLayout(False)
End Sub
#End Region
Private Sub BT1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT1.Click
textB.Text = "你單擊的是左邊的按鈕"
BT1.Text = "顯示"
BT2.Text = "單擊我"
TextB.BackColor = Color.Orange
End Sub
Private Sub BT2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT2.Click
TextB.Text = "你單擊的是右邊的按鈕"
BT2.Text = "顯示"
BT1.Text = "單擊我"
TextB.BackColor = Color.Yellow
End Sub
End Class
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -