📄 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 Off
Imports System.IO
Imports Microsoft.Office.Interop
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 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 chkMerlinHide As System.Windows.Forms.CheckBox
Friend WithEvents rtfDocument As System.Windows.Forms.RichTextBox
Friend WithEvents pgeExcel As System.Windows.Forms.TabPage
Friend WithEvents grdProducts As System.Windows.Forms.DataGrid
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents lstProducts As System.Windows.Forms.CheckedListBox
Friend WithEvents lstCustomers As System.Windows.Forms.CheckedListBox
Friend WithEvents btnAdd As System.Windows.Forms.Button
Friend WithEvents pgeInventory As System.Windows.Forms.TabPage
Friend WithEvents pgeInvoice As System.Windows.Forms.TabPage
Friend WithEvents btnEdList1 As System.Windows.Forms.Button
Friend WithEvents grdInvoice As System.Windows.Forms.DataGrid
Friend WithEvents dsNewRec As System.Data.DataSet
Friend WithEvents LinkLabel1 As System.Windows.Forms.LinkLabel
Friend WithEvents ContextMenu1 As System.Windows.Forms.ContextMenu
Friend WithEvents ctxEdit As System.Windows.Forms.MenuItem
Friend WithEvents ctxPPrv As System.Windows.Forms.MenuItem
Friend WithEvents ctxPrnt As System.Windows.Forms.MenuItem
Friend WithEvents StatusLabel As System.Windows.Forms.Label
<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.pgeInvoice = New System.Windows.Forms.TabPage()
Me.btnEdList1 = New System.Windows.Forms.Button()
Me.lstCustomers = New System.Windows.Forms.CheckedListBox()
Me.Label3 = New System.Windows.Forms.Label()
Me.lstProducts = New System.Windows.Forms.CheckedListBox()
Me.GroupBox1 = New System.Windows.Forms.GroupBox()
Me.ContextMenu1 = New System.Windows.Forms.ContextMenu()
Me.ctxEdit = New System.Windows.Forms.MenuItem()
Me.ctxPPrv = New System.Windows.Forms.MenuItem()
Me.ctxPrnt = New System.Windows.Forms.MenuItem()
Me.LinkLabel1 = New System.Windows.Forms.LinkLabel()
Me.grdInvoice = New System.Windows.Forms.DataGrid()
Me.btnAdd = New System.Windows.Forms.Button()
Me.Label2 = New System.Windows.Forms.Label()
Me.pgeInventory = 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.grdProducts = New System.Windows.Forms.DataGrid()
Me.dsNewRec = New System.Data.DataSet()
Me.Label1 = New System.Windows.Forms.Label()
Me.dlgOpenWordFile = New System.Windows.Forms.OpenFileDialog()
Me.chkMerlinHide = New System.Windows.Forms.CheckBox()
Me.StatusLabel = New System.Windows.Forms.Label()
Me.tabOfficeDemo.SuspendLayout()
Me.pgeInvoice.SuspendLayout()
Me.GroupBox1.SuspendLayout()
CType(Me.grdInvoice, System.ComponentModel.ISupportInitialize).BeginInit()
Me.pgeInventory.SuspendLayout()
Me.pgeExcel.SuspendLayout()
CType(Me.grdProducts, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.dsNewRec, 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)
Me.mnuAbout.Text = resources.GetString("mnuAbout.Text")
Me.mnuAbout.Visible = CType(resources.GetObject("mnuAbout.Visible"), Boolean)
'
'tabOfficeDemo
'
Me.tabOfficeDemo.AccessibleDescription = CType(resources.GetObject("tabOfficeDemo.AccessibleDescription"), String)
Me.tabOfficeDemo.AccessibleName = CType(resources.GetObject("tabOfficeDemo.AccessibleName"), String)
Me.tabOfficeDemo.Alignment = CType(resources.GetObject("tabOfficeDemo.Alignment"), System.Windows.Forms.TabAlignment)
Me.tabOfficeDemo.Anchor = CType(resources.GetObject("tabOfficeDemo.Anchor"), System.Windows.Forms.AnchorStyles)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -