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

📄 form1.vb

📁 IE WORD控件,IE中打开、操作WORDEXCEL
💻 VB
📖 第 1 页 / 共 2 页
字号:
Public Class FTestApp
    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

    '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 panTitlebar As System.Windows.Forms.Panel
    Friend WithEvents picLogo As System.Windows.Forms.PictureBox
    Friend WithEvents lblTitle As System.Windows.Forms.Label
    Friend WithEvents lblVersion As System.Windows.Forms.Label
    Friend WithEvents tbcDocsCont As System.Windows.Forms.TabControl
    Friend WithEvents tbMain As System.Windows.Forms.TabPage
    Friend WithEvents gboxCreate As System.Windows.Forms.GroupBox
    Friend WithEvents gboxOpen As System.Windows.Forms.GroupBox
    Friend WithEvents lblKbTitle As System.Windows.Forms.Label
    Friend WithEvents lblInto As System.Windows.Forms.Label
    Friend WithEvents lblPickNew As System.Windows.Forms.Label
    Friend WithEvents rbtnNewWord As System.Windows.Forms.RadioButton
    Friend WithEvents rbtnNewExcel As System.Windows.Forms.RadioButton
    Friend WithEvents rbtnNewPPT As System.Windows.Forms.RadioButton
    Friend WithEvents lblOpenFile As System.Windows.Forms.Label
    Friend WithEvents lblWordDocs As System.Windows.Forms.Label
    Friend WithEvents lblPPTDocs As System.Windows.Forms.Label
    Friend WithEvents lblExcelDocs As System.Windows.Forms.Label
    Friend WithEvents OFileDialog As System.Windows.Forms.OpenFileDialog
    Friend WithEvents btnCreateNew As System.Windows.Forms.Button
    Friend WithEvents btnOpenFile As System.Windows.Forms.Button
    Friend WithEvents tbDoc1 As System.Windows.Forms.TabPage
    Friend WithEvents tbDoc2 As System.Windows.Forms.TabPage
    Friend WithEvents tbDoc3 As System.Windows.Forms.TabPage
    Friend WithEvents tbDoc4 As System.Windows.Forms.TabPage
    Friend WithEvents axFramer1 As AxDSOFramer.AxFramerControl
    Friend WithEvents axFramer2 As AxDSOFramer.AxFramerControl
    Friend WithEvents axFramer3 As AxDSOFramer.AxFramerControl
    Friend WithEvents axFramer4 As AxDSOFramer.AxFramerControl

    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(FTestApp))
        Me.panTitlebar = New System.Windows.Forms.Panel
        Me.lblVersion = New System.Windows.Forms.Label
        Me.lblTitle = New System.Windows.Forms.Label
        Me.picLogo = New System.Windows.Forms.PictureBox
        Me.tbcDocsCont = New System.Windows.Forms.TabControl
        Me.tbMain = New System.Windows.Forms.TabPage
        Me.gboxOpen = New System.Windows.Forms.GroupBox
        Me.lblPPTDocs = New System.Windows.Forms.Label
        Me.lblExcelDocs = New System.Windows.Forms.Label
        Me.lblWordDocs = New System.Windows.Forms.Label
        Me.btnOpenFile = New System.Windows.Forms.Button
        Me.lblOpenFile = New System.Windows.Forms.Label
        Me.gboxCreate = New System.Windows.Forms.GroupBox
        Me.rbtnNewPPT = New System.Windows.Forms.RadioButton
        Me.rbtnNewExcel = New System.Windows.Forms.RadioButton
        Me.rbtnNewWord = New System.Windows.Forms.RadioButton
        Me.lblPickNew = New System.Windows.Forms.Label
        Me.btnCreateNew = New System.Windows.Forms.Button
        Me.lblInto = New System.Windows.Forms.Label
        Me.lblKbTitle = New System.Windows.Forms.Label
        Me.tbDoc4 = New System.Windows.Forms.TabPage
        Me.axFramer4 = New AxDSOFramer.AxFramerControl
        Me.tbDoc1 = New System.Windows.Forms.TabPage
        Me.axFramer1 = New AxDSOFramer.AxFramerControl
        Me.tbDoc2 = New System.Windows.Forms.TabPage
        Me.axFramer2 = New AxDSOFramer.AxFramerControl
        Me.tbDoc3 = New System.Windows.Forms.TabPage
        Me.axFramer3 = New AxDSOFramer.AxFramerControl
        Me.OFileDialog = New System.Windows.Forms.OpenFileDialog
        Me.panTitlebar.SuspendLayout()
        Me.tbcDocsCont.SuspendLayout()
        Me.tbMain.SuspendLayout()
        Me.gboxOpen.SuspendLayout()
        Me.gboxCreate.SuspendLayout()
        Me.tbDoc4.SuspendLayout()
        CType(Me.axFramer4, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.tbDoc1.SuspendLayout()
        CType(Me.axFramer1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.tbDoc2.SuspendLayout()
        CType(Me.axFramer2, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.tbDoc3.SuspendLayout()
        CType(Me.axFramer3, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'panTitlebar
        '
        Me.panTitlebar.BackColor = System.Drawing.Color.Gold
        Me.panTitlebar.Controls.Add(Me.lblVersion)
        Me.panTitlebar.Controls.Add(Me.lblTitle)
        Me.panTitlebar.Dock = System.Windows.Forms.DockStyle.Top
        Me.panTitlebar.Location = New System.Drawing.Point(0, 0)
        Me.panTitlebar.Name = "panTitlebar"
        Me.panTitlebar.Size = New System.Drawing.Size(572, 56)
        Me.panTitlebar.TabIndex = 1
        '
        'lblVersion
        '
        Me.lblVersion.Location = New System.Drawing.Point(168, 32)
        Me.lblVersion.Name = "lblVersion"
        Me.lblVersion.Size = New System.Drawing.Size(152, 16)
        Me.lblVersion.TabIndex = 1
        Me.lblVersion.Text = "Version 1.3.1323"
        '
        'lblTitle
        '
        Me.lblTitle.Font = New System.Drawing.Font("Arial", 14.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.lblTitle.Location = New System.Drawing.Point(160, 8)
        Me.lblTitle.Name = "lblTitle"
        Me.lblTitle.Size = New System.Drawing.Size(272, 24)
        Me.lblTitle.TabIndex = 0
        Me.lblTitle.Text = "DsoFramer VB.NET Sample"
        '
        'picLogo
        '
        Me.picLogo.Image = CType(resources.GetObject("picLogo.Image"), System.Drawing.Image)
        Me.picLogo.Location = New System.Drawing.Point(0, 0)
        Me.picLogo.Name = "picLogo"
        Me.picLogo.Size = New System.Drawing.Size(160, 56)
        Me.picLogo.TabIndex = 0
        Me.picLogo.TabStop = False
        '
        'tbcDocsCont
        '
        Me.tbcDocsCont.Controls.Add(Me.tbMain)
        Me.tbcDocsCont.Dock = System.Windows.Forms.DockStyle.Fill
        Me.tbcDocsCont.Location = New System.Drawing.Point(0, 56)
        Me.tbcDocsCont.Name = "tbcDocsCont"
        Me.tbcDocsCont.SelectedIndex = 0
        Me.tbcDocsCont.Size = New System.Drawing.Size(572, 454)
        Me.tbcDocsCont.TabIndex = 2
        '
        'tbMain
        '
        Me.tbMain.Controls.Add(Me.gboxOpen)
        Me.tbMain.Controls.Add(Me.gboxCreate)
        Me.tbMain.Controls.Add(Me.lblInto)
        Me.tbMain.Controls.Add(Me.lblKbTitle)
        Me.tbMain.Location = New System.Drawing.Point(4, 22)
        Me.tbMain.Name = "tbMain"
        Me.tbMain.Size = New System.Drawing.Size(564, 428)
        Me.tbMain.TabIndex = 1
        Me.tbMain.Text = "Main"
        '
        'gboxOpen
        '
        Me.gboxOpen.Controls.Add(Me.lblPPTDocs)
        Me.gboxOpen.Controls.Add(Me.lblExcelDocs)
        Me.gboxOpen.Controls.Add(Me.lblWordDocs)
        Me.gboxOpen.Controls.Add(Me.btnOpenFile)
        Me.gboxOpen.Controls.Add(Me.lblOpenFile)
        Me.gboxOpen.Location = New System.Drawing.Point(240, 112)
        Me.gboxOpen.Name = "gboxOpen"
        Me.gboxOpen.Size = New System.Drawing.Size(312, 208)
        Me.gboxOpen.TabIndex = 4
        Me.gboxOpen.TabStop = False
        Me.gboxOpen.Text = "Open Existing Document"
        '
        'lblPPTDocs
        '
        Me.lblPPTDocs.Location = New System.Drawing.Point(32, 112)
        Me.lblPPTDocs.Name = "lblPPTDocs"
        Me.lblPPTDocs.Size = New System.Drawing.Size(256, 24)
        Me.lblPPTDocs.TabIndex = 4
        Me.lblPPTDocs.Text = "- PowerPoint Presentations (*.ppt, *.pptx, *.pptm)"
        '
        'lblExcelDocs
        '
        Me.lblExcelDocs.Location = New System.Drawing.Point(32, 88)
        Me.lblExcelDocs.Name = "lblExcelDocs"
        Me.lblExcelDocs.Size = New System.Drawing.Size(256, 24)
        Me.lblExcelDocs.TabIndex = 3
        Me.lblExcelDocs.Text = "- Excel Workbooks (*.xls, *.xlsx, *.xlsm, *.xlsb)"
        '
        'lblWordDocs
        '
        Me.lblWordDocs.Location = New System.Drawing.Point(32, 64)
        Me.lblWordDocs.Name = "lblWordDocs"
        Me.lblWordDocs.Size = New System.Drawing.Size(256, 24)
        Me.lblWordDocs.TabIndex = 2
        Me.lblWordDocs.Text = "- Word Documents (*.doc, *.docx, *.docm)"
        '
        'btnOpenFile
        '
        Me.btnOpenFile.Location = New System.Drawing.Point(80, 160)
        Me.btnOpenFile.Name = "btnOpenFile"
        Me.btnOpenFile.Size = New System.Drawing.Size(152, 32)
        Me.btnOpenFile.TabIndex = 1
        Me.btnOpenFile.Text = "Open File"
        '
        'lblOpenFile
        '
        Me.lblOpenFile.Location = New System.Drawing.Point(16, 24)
        Me.lblOpenFile.Name = "lblOpenFile"
        Me.lblOpenFile.Size = New System.Drawing.Size(280, 32)
        Me.lblOpenFile.TabIndex = 0
        Me.lblOpenFile.Text = "Click this button to find and open a file from the local drive.  By default, the " & _
        "dialog will display: "
        '
        'gboxCreate
        '
        Me.gboxCreate.Controls.Add(Me.rbtnNewPPT)
        Me.gboxCreate.Controls.Add(Me.rbtnNewExcel)
        Me.gboxCreate.Controls.Add(Me.rbtnNewWord)
        Me.gboxCreate.Controls.Add(Me.lblPickNew)
        Me.gboxCreate.Controls.Add(Me.btnCreateNew)
        Me.gboxCreate.Location = New System.Drawing.Point(8, 112)
        Me.gboxCreate.Name = "gboxCreate"
        Me.gboxCreate.Size = New System.Drawing.Size(224, 208)
        Me.gboxCreate.TabIndex = 3
        Me.gboxCreate.TabStop = False
        Me.gboxCreate.Text = "Create New Document"
        '
        'rbtnNewPPT
        '
        Me.rbtnNewPPT.Location = New System.Drawing.Point(16, 112)
        Me.rbtnNewPPT.Name = "rbtnNewPPT"
        Me.rbtnNewPPT.Size = New System.Drawing.Size(200, 24)
        Me.rbtnNewPPT.TabIndex = 6
        Me.rbtnNewPPT.Text = "Microsoft PowerPoint Presentation"
        '
        'rbtnNewExcel
        '
        Me.rbtnNewExcel.Location = New System.Drawing.Point(16, 80)
        Me.rbtnNewExcel.Name = "rbtnNewExcel"
        Me.rbtnNewExcel.Size = New System.Drawing.Size(200, 24)
        Me.rbtnNewExcel.TabIndex = 5
        Me.rbtnNewExcel.Text = "Microsoft Excel Workbook"
        '
        'rbtnNewWord
        '
        Me.rbtnNewWord.Checked = True
        Me.rbtnNewWord.Location = New System.Drawing.Point(16, 48)
        Me.rbtnNewWord.Name = "rbtnNewWord"
        Me.rbtnNewWord.Size = New System.Drawing.Size(200, 24)
        Me.rbtnNewWord.TabIndex = 4
        Me.rbtnNewWord.TabStop = True
        Me.rbtnNewWord.Text = "Microsoft Word Document"
        '
        'lblPickNew
        '
        Me.lblPickNew.Location = New System.Drawing.Point(8, 24)
        Me.lblPickNew.Name = "lblPickNew"
        Me.lblPickNew.Size = New System.Drawing.Size(208, 24)
        Me.lblPickNew.TabIndex = 3
        Me.lblPickNew.Text = "Pick a new document type to open."
        '
        'btnCreateNew
        '
        Me.btnCreateNew.Location = New System.Drawing.Point(24, 160)
        Me.btnCreateNew.Name = "btnCreateNew"
        Me.btnCreateNew.Size = New System.Drawing.Size(152, 32)
        Me.btnCreateNew.TabIndex = 2
        Me.btnCreateNew.Text = "Create"
        '
        'lblInto
        '
        Me.lblInto.Location = New System.Drawing.Point(8, 40)
        Me.lblInto.Name = "lblInto"
        Me.lblInto.Size = New System.Drawing.Size(544, 56)
        Me.lblInto.TabIndex = 1
        Me.lblInto.Text = "This sample host is used to test having more than one instance of the DsoFramer c" & _
        "ontrol on a WinForm application window. Click the button to add or open a new do" & _
        "cument.  The document will open in a new tab.  This sample only supports opening" & _
        " 4 documents at any one time."
        '
        'lblKbTitle
        '
        Me.lblKbTitle.Font = New System.Drawing.Font("Arial", 14.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.lblKbTitle.Location = New System.Drawing.Point(8, 8)
        Me.lblKbTitle.Name = "lblKbTitle"
        Me.lblKbTitle.Size = New System.Drawing.Size(544, 32)
        Me.lblKbTitle.TabIndex = 0
        Me.lblKbTitle.Text = "KB311765 : DsoFramer ActiveX Control WinForm Host"
        '
        'tbDoc4
        '
        Me.tbDoc4.Controls.Add(Me.axFramer4)
        Me.tbDoc4.Location = New System.Drawing.Point(4, 22)
        Me.tbDoc4.Name = "tbDoc4"
        Me.tbDoc4.Size = New System.Drawing.Size(564, 451)
        Me.tbDoc4.TabIndex = 0
        Me.tbDoc4.Tag = 4
        Me.tbDoc4.Text = "Document4"
        '
        'axFramer4
        '
        Me.axFramer4.ContainingControl = Me
        Me.axFramer4.Dock = System.Windows.Forms.DockStyle.Fill
        Me.axFramer4.Enabled = True
        Me.axFramer4.Location = New System.Drawing.Point(0, 0)
        Me.axFramer4.Name = "axFramer4"
        Me.axFramer4.OcxState = CType(resources.GetObject("axFramer4.OcxState"), System.Windows.Forms.AxHost.State)
        Me.axFramer4.Size = New System.Drawing.Size(564, 451)
        Me.axFramer4.TabIndex = 0
        '
        'tbDoc1
        '
        Me.tbDoc1.Controls.Add(Me.axFramer1)
        Me.tbDoc1.Location = New System.Drawing.Point(4, 22)
        Me.tbDoc1.Name = "tbDoc1"
        Me.tbDoc1.Size = New System.Drawing.Size(564, 451)
        Me.tbDoc1.TabIndex = 0
        Me.tbDoc1.Tag = 1
        Me.tbDoc1.Text = "Document1"
        '
        'axFramer1
        '
        Me.axFramer1.ContainingControl = Me
        Me.axFramer1.Dock = System.Windows.Forms.DockStyle.Fill
        Me.axFramer1.Enabled = True
        Me.axFramer1.Location = New System.Drawing.Point(0, 0)
        Me.axFramer1.Name = "axFramer1"
        Me.axFramer1.OcxState = CType(resources.GetObject("axFramer1.OcxState"), System.Windows.Forms.AxHost.State)
        Me.axFramer1.Size = New System.Drawing.Size(564, 451)
        Me.axFramer1.TabIndex = 0
        '
        'tbDoc2
        '
        Me.tbDoc2.Controls.Add(Me.axFramer2)
        Me.tbDoc2.Location = New System.Drawing.Point(4, 22)
        Me.tbDoc2.Name = "tbDoc2"
        Me.tbDoc2.Size = New System.Drawing.Size(564, 451)
        Me.tbDoc2.TabIndex = 0
        Me.tbDoc2.Tag = 2
        Me.tbDoc2.Text = "Document2"

⌨️ 快捷键说明

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