📄 frmmain.vb
字号:
'Copyright (C) 2002 Microsoft Corporation
'All rights reserved.
'THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
'EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
'MERCHANTIBILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
'Requires the Trial or Release version of Visual Studio .NET Professional (or greater).
Option Strict On
Public Class frmMain
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
' So that we only need to set the title of the application once,
' we use the AssemblyInfo class (defined in the AssemblyInfo.vb file)
' to read the AssemblyTitle attribute.
Dim ainfo As New AssemblyInfo()
Me.Text = ainfo.Title
Me.mnuAbout.Text = String.Format("&About {0} ...", ainfo.Title)
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
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'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.
Friend WithEvents mnuMain As System.Windows.Forms.MainMenu
Friend WithEvents mnuFile As System.Windows.Forms.MenuItem
Friend WithEvents mnuExit As System.Windows.Forms.MenuItem
Friend WithEvents mnuHelp As System.Windows.Forms.MenuItem
Friend WithEvents mnuAbout As System.Windows.Forms.MenuItem
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents btnSpeak As System.Windows.Forms.Button
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents dlgOpenWordFile As System.Windows.Forms.OpenFileDialog
Friend WithEvents btnBrowseWord As System.Windows.Forms.Button
Friend WithEvents btnSpellCheck As System.Windows.Forms.Button
Friend WithEvents btnGetMenu As System.Windows.Forms.Button
Friend WithEvents btnExport As System.Windows.Forms.Button
Friend WithEvents tabOfficeDemo As System.Windows.Forms.TabControl
Friend WithEvents optDontRecognize As System.Windows.Forms.RadioButton
Friend WithEvents optWrite As System.Windows.Forms.RadioButton
Friend WithEvents optWave As System.Windows.Forms.RadioButton
Friend WithEvents optApplaud As System.Windows.Forms.RadioButton
Friend WithEvents optSurprised As System.Windows.Forms.RadioButton
Friend WithEvents optSuggest As System.Windows.Forms.RadioButton
Friend WithEvents optAnnounce As System.Windows.Forms.RadioButton
Friend WithEvents optDoMagic As System.Windows.Forms.RadioButton
Friend WithEvents optExplain As System.Windows.Forms.RadioButton
Friend WithEvents optCongrats As System.Windows.Forms.RadioButton
Friend WithEvents txtSpeak As System.Windows.Forms.TextBox
Friend WithEvents chkMerlinHide As System.Windows.Forms.CheckBox
Friend WithEvents rtfDocument As System.Windows.Forms.RichTextBox
Friend WithEvents grdMenu As System.Windows.Forms.DataGrid
Friend WithEvents pgeWizard As System.Windows.Forms.TabPage
Friend WithEvents pgeWord As System.Windows.Forms.TabPage
Friend WithEvents pgeExcel As System.Windows.Forms.TabPage
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmMain))
Me.mnuMain = New System.Windows.Forms.MainMenu()
Me.mnuFile = New System.Windows.Forms.MenuItem()
Me.mnuExit = New System.Windows.Forms.MenuItem()
Me.mnuHelp = New System.Windows.Forms.MenuItem()
Me.mnuAbout = New System.Windows.Forms.MenuItem()
Me.tabOfficeDemo = New System.Windows.Forms.TabControl()
Me.pgeWizard = New System.Windows.Forms.TabPage()
Me.GroupBox1 = New System.Windows.Forms.GroupBox()
Me.optDontRecognize = New System.Windows.Forms.RadioButton()
Me.optWrite = New System.Windows.Forms.RadioButton()
Me.optWave = New System.Windows.Forms.RadioButton()
Me.optApplaud = New System.Windows.Forms.RadioButton()
Me.optSurprised = New System.Windows.Forms.RadioButton()
Me.optSuggest = New System.Windows.Forms.RadioButton()
Me.optAnnounce = New System.Windows.Forms.RadioButton()
Me.optDoMagic = New System.Windows.Forms.RadioButton()
Me.optExplain = New System.Windows.Forms.RadioButton()
Me.optCongrats = New System.Windows.Forms.RadioButton()
Me.btnSpeak = New System.Windows.Forms.Button()
Me.txtSpeak = New System.Windows.Forms.TextBox()
Me.Label2 = New System.Windows.Forms.Label()
Me.pgeWord = New System.Windows.Forms.TabPage()
Me.btnSpellCheck = New System.Windows.Forms.Button()
Me.rtfDocument = New System.Windows.Forms.RichTextBox()
Me.btnBrowseWord = New System.Windows.Forms.Button()
Me.pgeExcel = New System.Windows.Forms.TabPage()
Me.btnExport = New System.Windows.Forms.Button()
Me.btnGetMenu = New System.Windows.Forms.Button()
Me.grdMenu = New System.Windows.Forms.DataGrid()
Me.Label1 = New System.Windows.Forms.Label()
Me.dlgOpenWordFile = New System.Windows.Forms.OpenFileDialog()
Me.chkMerlinHide = New System.Windows.Forms.CheckBox()
Me.tabOfficeDemo.SuspendLayout()
Me.pgeWizard.SuspendLayout()
Me.GroupBox1.SuspendLayout()
Me.pgeWord.SuspendLayout()
Me.pgeExcel.SuspendLayout()
CType(Me.grdMenu, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'mnuMain
'
Me.mnuMain.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.mnuFile, Me.mnuHelp})
Me.mnuMain.RightToLeft = CType(resources.GetObject("mnuMain.RightToLeft"), System.Windows.Forms.RightToLeft)
'
'mnuFile
'
Me.mnuFile.Enabled = CType(resources.GetObject("mnuFile.Enabled"), Boolean)
Me.mnuFile.Index = 0
Me.mnuFile.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.mnuExit})
Me.mnuFile.Shortcut = CType(resources.GetObject("mnuFile.Shortcut"), System.Windows.Forms.Shortcut)
Me.mnuFile.ShowShortcut = CType(resources.GetObject("mnuFile.ShowShortcut"), Boolean)
Me.mnuFile.Text = resources.GetString("mnuFile.Text")
Me.mnuFile.Visible = CType(resources.GetObject("mnuFile.Visible"), Boolean)
'
'mnuExit
'
Me.mnuExit.Enabled = CType(resources.GetObject("mnuExit.Enabled"), Boolean)
Me.mnuExit.Index = 0
Me.mnuExit.Shortcut = CType(resources.GetObject("mnuExit.Shortcut"), System.Windows.Forms.Shortcut)
Me.mnuExit.ShowShortcut = CType(resources.GetObject("mnuExit.ShowShortcut"), Boolean)
Me.mnuExit.Text = resources.GetString("mnuExit.Text")
Me.mnuExit.Visible = CType(resources.GetObject("mnuExit.Visible"), Boolean)
'
'mnuHelp
'
Me.mnuHelp.Enabled = CType(resources.GetObject("mnuHelp.Enabled"), Boolean)
Me.mnuHelp.Index = 1
Me.mnuHelp.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.mnuAbout})
Me.mnuHelp.Shortcut = CType(resources.GetObject("mnuHelp.Shortcut"), System.Windows.Forms.Shortcut)
Me.mnuHelp.ShowShortcut = CType(resources.GetObject("mnuHelp.ShowShortcut"), Boolean)
Me.mnuHelp.Text = resources.GetString("mnuHelp.Text")
Me.mnuHelp.Visible = CType(resources.GetObject("mnuHelp.Visible"), Boolean)
'
'mnuAbout
'
Me.mnuAbout.Enabled = CType(resources.GetObject("mnuAbout.Enabled"), Boolean)
Me.mnuAbout.Index = 0
Me.mnuAbout.Shortcut = CType(resources.GetObject("mnuAbout.Shortcut"), System.Windows.Forms.Shortcut)
Me.mnuAbout.ShowShortcut = CType(resources.GetObject("mnuAbout.ShowShortcut"), Boolean)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -