⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editorform.vb

📁 Mastering VBNet Include Source Code
💻 VB
📖 第 1 页 / 共 2 页
字号:
Public Class EditorForm
    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 TrackBar1 As System.Windows.Forms.TrackBar
    Friend WithEvents TrackBar2 As System.Windows.Forms.TrackBar
    Public WithEvents Editor As System.Windows.Forms.RichTextBox
    Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu
    Friend WithEvents FileMenu As System.Windows.Forms.MenuItem
    Friend WithEvents EditMenu As System.Windows.Forms.MenuItem
    Friend WithEvents FormatMenu As System.Windows.Forms.MenuItem
    Friend WithEvents FileNew As System.Windows.Forms.MenuItem
    Friend WithEvents FileOpen As System.Windows.Forms.MenuItem
    Friend WithEvents FileSave As System.Windows.Forms.MenuItem
    Friend WithEvents FileSaveAs As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItem8 As System.Windows.Forms.MenuItem
    Friend WithEvents FileExit As System.Windows.Forms.MenuItem
    Friend WithEvents EditCopy As System.Windows.Forms.MenuItem
    Friend WithEvents EditCut As System.Windows.Forms.MenuItem
    Friend WithEvents EditPaste As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItem13 As System.Windows.Forms.MenuItem
    Friend WithEvents EditUndo As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItem15 As System.Windows.Forms.MenuItem
    Friend WithEvents AlignMenu As System.Windows.Forms.MenuItem
    Friend WithEvents AlignLeft As System.Windows.Forms.MenuItem
    Friend WithEvents AlignCenter As System.Windows.Forms.MenuItem
    Friend WithEvents AlignRight As System.Windows.Forms.MenuItem
    Friend WithEvents FormatFont As System.Windows.Forms.MenuItem
    Friend WithEvents EditSelect As System.Windows.Forms.MenuItem
    Friend WithEvents EditFind As System.Windows.Forms.MenuItem
    Friend WithEvents OpenFileDialog1 As System.Windows.Forms.OpenFileDialog
    Friend WithEvents SaveFileDialog1 As System.Windows.Forms.SaveFileDialog
    Friend WithEvents FontDialog1 As System.Windows.Forms.FontDialog
    Friend WithEvents EditRedo As System.Windows.Forms.MenuItem

    '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.FormatMenu = New System.Windows.Forms.MenuItem()
        Me.AlignMenu = New System.Windows.Forms.MenuItem()
        Me.AlignLeft = New System.Windows.Forms.MenuItem()
        Me.AlignCenter = New System.Windows.Forms.MenuItem()
        Me.AlignRight = New System.Windows.Forms.MenuItem()
        Me.FormatFont = New System.Windows.Forms.MenuItem()
        Me.EditCut = New System.Windows.Forms.MenuItem()
        Me.FileOpen = New System.Windows.Forms.MenuItem()
        Me.TrackBar2 = New System.Windows.Forms.TrackBar()
        Me.EditSelect = New System.Windows.Forms.MenuItem()
        Me.EditPaste = New System.Windows.Forms.MenuItem()
        Me.EditMenu = New System.Windows.Forms.MenuItem()
        Me.EditUndo = New System.Windows.Forms.MenuItem()
        Me.EditRedo = New System.Windows.Forms.MenuItem()
        Me.MenuItem15 = New System.Windows.Forms.MenuItem()
        Me.EditCopy = New System.Windows.Forms.MenuItem()
        Me.MenuItem13 = New System.Windows.Forms.MenuItem()
        Me.EditFind = New System.Windows.Forms.MenuItem()
        Me.FileExit = New System.Windows.Forms.MenuItem()
        Me.FileSave = New System.Windows.Forms.MenuItem()
        Me.FileNew = New System.Windows.Forms.MenuItem()
        Me.FontDialog1 = New System.Windows.Forms.FontDialog()
        Me.MenuItem8 = New System.Windows.Forms.MenuItem()
        Me.FileSaveAs = New System.Windows.Forms.MenuItem()
        Me.Editor = New System.Windows.Forms.RichTextBox()
        Me.FileMenu = New System.Windows.Forms.MenuItem()
        Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog()
        Me.MainMenu1 = New System.Windows.Forms.MainMenu()
        Me.SaveFileDialog1 = New System.Windows.Forms.SaveFileDialog()
        Me.TrackBar1 = New System.Windows.Forms.TrackBar()
        CType(Me.TrackBar2, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.TrackBar1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'FormatMenu
        '
        Me.FormatMenu.Index = 2
        Me.FormatMenu.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.AlignMenu, Me.FormatFont})
        Me.FormatMenu.Text = "Format"
        '
        'AlignMenu
        '
        Me.AlignMenu.Index = 0
        Me.AlignMenu.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.AlignLeft, Me.AlignCenter, Me.AlignRight})
        Me.AlignMenu.Text = "Align"
        '
        'AlignLeft
        '
        Me.AlignLeft.Index = 0
        Me.AlignLeft.Text = "Left"
        '
        'AlignCenter
        '
        Me.AlignCenter.Index = 1
        Me.AlignCenter.Text = "Center"
        '
        'AlignRight
        '
        Me.AlignRight.Index = 2
        Me.AlignRight.Text = "Right"
        '
        'FormatFont
        '
        Me.FormatFont.Index = 1
        Me.FormatFont.Text = "Font"
        '
        'EditCut
        '
        Me.EditCut.Index = 4
        Me.EditCut.Text = "Cut"
        '
        'FileOpen
        '
        Me.FileOpen.Index = 1
        Me.FileOpen.Text = "Open"
        '
        'TrackBar2
        '
        Me.TrackBar2.LargeChange = 2
        Me.TrackBar2.Location = New System.Drawing.Point(0, 24)
        Me.TrackBar2.Maximum = 16
        Me.TrackBar2.Name = "TrackBar2"
        Me.TrackBar2.Size = New System.Drawing.Size(816, 42)
        Me.TrackBar2.TabIndex = 1
        '
        'EditSelect
        '
        Me.EditSelect.Index = 6
        Me.EditSelect.Text = "Select All"
        '
        'EditPaste
        '
        Me.EditPaste.Index = 5
        Me.EditPaste.Text = "Paste"
        '
        'EditMenu
        '
        Me.EditMenu.Index = 1
        Me.EditMenu.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.EditUndo, Me.EditRedo, Me.MenuItem15, Me.EditCopy, Me.EditCut, Me.EditPaste, Me.EditSelect, Me.MenuItem13, Me.EditFind})
        Me.EditMenu.Text = "Edit"
        '
        'EditUndo
        '
        Me.EditUndo.Index = 0
        Me.EditUndo.Text = "Undo"
        '
        'EditRedo
        '
        Me.EditRedo.Index = 1
        Me.EditRedo.Text = "Redo"
        '
        'MenuItem15
        '
        Me.MenuItem15.Index = 2
        Me.MenuItem15.Text = "-"
        '
        'EditCopy
        '
        Me.EditCopy.Index = 3
        Me.EditCopy.Text = "Copy"
        '
        'MenuItem13
        '
        Me.MenuItem13.Index = 7
        Me.MenuItem13.Text = "-"
        '
        'EditFind
        '
        Me.EditFind.Index = 8
        Me.EditFind.Text = "Find"
        '
        'FileExit
        '
        Me.FileExit.Index = 5
        Me.FileExit.Text = "Exit"
        '
        'FileSave
        '
        Me.FileSave.Index = 2
        Me.FileSave.Text = "Save"
        '
        'FileNew
        '
        Me.FileNew.Index = 0
        Me.FileNew.Text = "New"
        '
        'MenuItem8
        '
        Me.MenuItem8.Index = 4
        Me.MenuItem8.Text = "-"
        '
        'FileSaveAs
        '
        Me.FileSaveAs.Index = 3
        Me.FileSaveAs.Text = "Save As"
        '
        'Editor

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -