?? form1.vb
字號:
Public Class FORM1
Inherits System.Windows.Forms.Form
#Region " Windows 窗體設(shè)計器生成的代碼 "
Public Sub New()
MyBase.New()
'該調(diào)用是 Windows 窗體設(shè)計器所必需的。
InitializeComponent()
'在 InitializeComponent() 調(diào)用之后添加任何初始化
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 窗體設(shè)計器所必需的
Private components As System.ComponentModel.IContainer
'注意: 以下過程是 Windows 窗體設(shè)計器所必需的
'可以使用 Windows 窗體設(shè)計器修改此過程。
'不要使用代碼編輯器修改它。
Friend WithEvents ToolBar1 As System.Windows.Forms.ToolBar
Friend WithEvents RichTextBox1 As System.Windows.Forms.RichTextBox
Friend WithEvents ImageList1 As System.Windows.Forms.ImageList
Friend WithEvents tbie As System.Windows.Forms.ToolBarButton
Public WithEvents tbtime As System.Windows.Forms.ToolBarButton
Friend WithEvents tbopen As System.Windows.Forms.ToolBarButton
Friend WithEvents tbbox As System.Windows.Forms.ToolBarButton
Friend WithEvents tbnew As System.Windows.Forms.ToolBarButton
Friend WithEvents tbcut As System.Windows.Forms.ToolBarButton
Friend WithEvents Timer1 As System.Windows.Forms.Timer
Friend WithEvents StatusBar1 As System.Windows.Forms.StatusBar
Friend WithEvents StatusBarPanel1 As System.Windows.Forms.StatusBarPanel
Friend WithEvents StpnlTime As System.Windows.Forms.StatusBarPanel
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(FORM1))
Me.ToolBar1 = New System.Windows.Forms.ToolBar
Me.tbie = New System.Windows.Forms.ToolBarButton
Me.tbtime = New System.Windows.Forms.ToolBarButton
Me.tbopen = New System.Windows.Forms.ToolBarButton
Me.tbbox = New System.Windows.Forms.ToolBarButton
Me.tbnew = New System.Windows.Forms.ToolBarButton
Me.tbcut = New System.Windows.Forms.ToolBarButton
Me.ImageList1 = New System.Windows.Forms.ImageList(Me.components)
Me.RichTextBox1 = New System.Windows.Forms.RichTextBox
Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
Me.StatusBar1 = New System.Windows.Forms.StatusBar
Me.StatusBarPanel1 = New System.Windows.Forms.StatusBarPanel
Me.StpnlTime = New System.Windows.Forms.StatusBarPanel
CType(Me.StatusBarPanel1, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.StpnlTime, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'ToolBar1
'
Me.ToolBar1.Buttons.AddRange(New System.Windows.Forms.ToolBarButton() {Me.tbie, Me.tbtime, Me.tbopen, Me.tbbox, Me.tbnew, Me.tbcut})
Me.ToolBar1.DropDownArrows = True
Me.ToolBar1.ImageList = Me.ImageList1
Me.ToolBar1.Location = New System.Drawing.Point(0, 0)
Me.ToolBar1.Name = "ToolBar1"
Me.ToolBar1.ShowToolTips = True
Me.ToolBar1.Size = New System.Drawing.Size(292, 28)
Me.ToolBar1.TabIndex = 0
'
'tbie
'
Me.tbie.ImageIndex = 3
'
'tbtime
'
Me.tbtime.ImageIndex = 0
Me.tbtime.ToolTipText = "顯示系統(tǒng)時間"
'
'tbopen
'
Me.tbopen.ImageIndex = 2
'
'tbbox
'
Me.tbbox.ImageIndex = 4
'
'tbnew
'
Me.tbnew.ImageIndex = 5
'
'tbcut
'
Me.tbcut.ImageIndex = 1
'
'ImageList1
'
Me.ImageList1.ImageSize = New System.Drawing.Size(16, 16)
Me.ImageList1.ImageStream = CType(resources.GetObject("ImageList1.ImageStream"), System.Windows.Forms.ImageListStreamer)
Me.ImageList1.TransparentColor = System.Drawing.Color.Transparent
'
'RichTextBox1
'
Me.RichTextBox1.Location = New System.Drawing.Point(8, 56)
Me.RichTextBox1.Name = "RichTextBox1"
Me.RichTextBox1.Size = New System.Drawing.Size(272, 176)
Me.RichTextBox1.TabIndex = 1
Me.RichTextBox1.Text = "各單位,各在職攻讀博、碩士學(xué)位研究生教師:"
'
'Timer1
'
Me.Timer1.Interval = 1000
'
'StatusBar1
'
Me.StatusBar1.Location = New System.Drawing.Point(0, 251)
Me.StatusBar1.Name = "StatusBar1"
Me.StatusBar1.Panels.AddRange(New System.Windows.Forms.StatusBarPanel() {Me.StatusBarPanel1, Me.StpnlTime})
Me.StatusBar1.ShowPanels = True
Me.StatusBar1.Size = New System.Drawing.Size(292, 22)
Me.StatusBar1.TabIndex = 2
Me.StatusBar1.Text = "StatusBar1"
'
'StatusBarPanel1
'
Me.StatusBarPanel1.Text = "設(shè)計者:李玲玉"
'
'StpnlTime
'
Me.StpnlTime.Text = "15:12:26"
'
'FORM1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
Me.ClientSize = New System.Drawing.Size(292, 273)
Me.Controls.Add(Me.StatusBar1)
Me.Controls.Add(Me.RichTextBox1)
Me.Controls.Add(Me.ToolBar1)
Me.Name = "FORM1"
Me.Text = "NOTEPAD.NET"
CType(Me.StatusBarPanel1, System.ComponentModel.ISupportInitialize).EndInit()
CType(Me.StpnlTime, System.ComponentModel.ISupportInitialize).EndInit()
Me.ResumeLayout(False)
End Sub
#End Region
Private Sub ToolBar1_ButtonClick(ByVal sender As Object, ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles ToolBar1.ButtonClick
Dim SelectedButtonIndex As Integer
SelectedButtonIndex = ToolBar1.Buttons.IndexOf(e.Button)
End Sub
Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim t As Date = Date.Now
Dim s As String = t.ToLongTimeString
StpnlTime.Text = s
End Sub
Private Sub FORM1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -