亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? form1.vb

?? Mastering VBNet Include Source Code
?? VB
字號:
Option Strict Off
Public Class Form1
    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 Button1 As System.Windows.Forms.Button
    Friend WithEvents SaveFileDialog1 As System.Windows.Forms.SaveFileDialog
    Friend WithEvents Button2 As System.Windows.Forms.Button
    Friend WithEvents Button3 As System.Windows.Forms.Button

    '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.Button1 = New System.Windows.Forms.Button()
        Me.SaveFileDialog1 = New System.Windows.Forms.SaveFileDialog()
        Me.Button2 = New System.Windows.Forms.Button()
        Me.Button3 = New System.Windows.Forms.Button()
        Me.SuspendLayout()
        '
        'Button1
        '
        Me.Button1.Font = New System.Drawing.Font("Comic Sans MS", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Button1.Location = New System.Drawing.Point(64, 32)
        Me.Button1.Name = "Button1"
        Me.Button1.Size = New System.Drawing.Size(168, 32)
        Me.Button1.TabIndex = 0
        Me.Button1.Text = "TypeText"
        '
        'SaveFileDialog1
        '
        Me.SaveFileDialog1.FileName = "doc1"
        '
        'Button2
        '
        Me.Button2.Font = New System.Drawing.Font("Comic Sans MS", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Button2.Location = New System.Drawing.Point(64, 72)
        Me.Button2.Name = "Button2"
        Me.Button2.Size = New System.Drawing.Size(168, 32)
        Me.Button2.TabIndex = 1
        Me.Button2.Text = "InsertAfter"
        '
        'Button3
        '
        Me.Button3.Font = New System.Drawing.Font("Comic Sans MS", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Button3.Location = New System.Drawing.Point(64, 112)
        Me.Button3.Name = "Button3"
        Me.Button3.Size = New System.Drawing.Size(168, 32)
        Me.Button3.TabIndex = 2
        Me.Button3.Text = "Edit Document"
        '
        'Form1
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(292, 181)
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Button3, Me.Button2, Me.Button1})
        Me.Name = "Form1"
        Me.Text = "Word Demo"
        Me.ResumeLayout(False)

    End Sub

#End Region

    Dim WordApp As New Word.Application()
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim doc As New Word.Document()
        doc = WordApp.Documents.Add()
        Dim str As String
        str = "Text Formatting:"
        With WordApp.Selection
            .Font.Size = WordApp.Selection.Font.Size + 2
            .Font.Bold = True
            .TypeText(str)
            .Font.Size = WordApp.Selection.Font.Size - 2
            .Font.Bold = False
            .TypeParagraph()
            .Font.Color = Word.WdColor.wdColorDarkRed
            .Font.Italic = False
            .TypeText("This sentence will appear in red. ")

            .TypeParagraph()
            .Font.Color = Word.WdColor.wdColorBlack
            .Font.Italic = True
            .Font.Size = WordApp.Selection.Font.Size + 2
            .TypeText("Text color was reset to black, " & _
                    "but the font size was increased by two points")
        End With
        Dim fName As String
        SaveFileDialog1.Filter = "Documents|*.doc"
        SaveFileDialog1.ShowDialog()
        fName = SaveFileDialog1.FileName
        If fName <> "" Then
            Try
                doc.SaveAs(fName)
            Catch exc As Exception
                MsgBox("Failed to save document" & _
                        vbCrLf & exc.Message)
            End Try
        End If
        MsgBox("The document contains " & doc.Paragraphs.Count & " paragraphs " & vbCrLf & _
                doc.Words.Count & " words and " & doc.Characters.Count & " words")
        doc.Close(Word.WdSaveOptions.wdDoNotSaveChanges)
    End Sub

    Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
        WordApp.Quit(False)
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim doc As New Word.Document()
        doc = WordApp.Documents.Add()
        With doc.Range
            .InsertAfter("A New Architecture " & _
                    "for Building Distributed Applications")
            .InsertParagraphAfter()
            .InsertAfter("ADO.NET is the latest data access " & _
                    "technology from Microsoft, geared towards " & _
                    "distributed applications. Unlike its predecessor, " & _
                    "ADO.NET uses disconnected recordsets.")
            .InsertParagraphAfter()
            .InsertAfter("The disconnected recordsets are called " & _
                    "DataSets and they may contain multiple tables. " & _
                    "If the tables are related, the DataSet knows " & _
                    "how to handle the relations and it provides " & _
                    "methods that allow you to move from any row of " & _
                    "a table to the related rows of the other tables.")
            .InsertParagraphAfter()
            .InsertParagraphAfter()
            .InsertAfter("ADO.NET uses XML to move rows between " & _
                    "the database and the middle tier, as well as " & _
                    "between the middle tier and the client. " & _
                    "XML passes through firewalls and it's an ideal " & _
                    "candidate for moving binary information between " & _
                    "layers and/or different operating systems.")
        End With
        Dim selRange As Word.Range
        selRange = doc.Paragraphs.Item(1).Range
        selRange.Font.Size = 14
        selRange.Font.Bold = True
        selRange.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
        selRange = doc.Paragraphs.Item(2).Range.Sentences.Item(2)
        selRange.Italic = True
        selRange = doc.Paragraphs.Item(3).Range.Words.Item(6)
        selRange.Font.Bold = True
        selRange = doc.Paragraphs.Item(5).Range.Words.Item(5)
        selRange.Font.Bold = True

        Dim fName As String
        SaveFileDialog1.Filter = "Documents|*.doc"
        SaveFileDialog1.ShowDialog()
        fName = SaveFileDialog1.FileName
        If fName <> "" Then
            Try
                doc.SaveAs(fName)
            Catch exc As Exception
                MsgBox("Failed to save document" & _
                        vbCrLf & exc.Message)
            End Try
        End If
        MsgBox("The document contains " & doc.Paragraphs.Count & " paragraphs " & vbCrLf & _
                doc.Words.Count & " words and " & doc.Characters.Count & " words")
        doc.Close(Word.WdSaveOptions.wdDoNotSaveChanges)
    End Sub

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        Dim thisDoc As Word.Document
        Dim thisRange As Word.Range

        WordApp.Documents.Open("c:\sample.doc")
        WordApp.Visible = False
        thisDoc = WordApp.ActiveDocument
        thisDoc.Content.Find.Execute(FindText:="VB7", _
                   ReplaceWith:="VB.NET", _
                   Replace:=Word.WdReplace.wdReplaceAll)
        While thisDoc.Content.Find.Execute(FindText:="  ", _
                           Wrap:=Word.WdFindWrap.wdFindContinue)
            thisDoc.Content.Find.Execute(FindText:="  ", _
                           ReplaceWith:=" ", _
                           Replace:=Word.WdReplace.wdReplaceAll, _
                           Wrap:=Word.WdFindWrap.wdFindContinue)
        End While
        WordApp.Documents.Item(1).Save()
        MsgBox("Replaced all instances of 'VB7' with 'VB.NET' and saved the document")
        WordApp.Documents.Item(1).Close()
    End Sub
End Class

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩激情中文字幕| 亚洲成人福利片| 成人动漫一区二区三区| 中文字幕一区免费在线观看| 99久久精品国产精品久久| 国产女同互慰高潮91漫画| 国产91在线观看| 亚洲美女免费视频| 欧美一区二区啪啪| 成人禁用看黄a在线| 天天做天天摸天天爽国产一区| 欧美一区二区三区思思人| 国产99久久久国产精品| 久久先锋影音av| 国产精品一二三四区| 国产精品成人一区二区艾草| 欧美精品日日鲁夜夜添| 国产一区视频在线看| 一区二区日韩电影| 26uuu久久天堂性欧美| 91小视频在线免费看| 蜜臀精品一区二区三区在线观看| 日本一区二区三区视频视频| 日韩美一区二区三区| 欧美三级三级三级爽爽爽| 国产乱码精品一区二区三区五月婷| 精品国产一区二区国模嫣然| 色88888久久久久久影院野外| 久久er99精品| 蜜臀国产一区二区三区在线播放 | 亚洲免费看黄网站| 国产精品久久午夜夜伦鲁鲁| 日韩免费福利电影在线观看| 欧美日韩精品是欧美日韩精品| 91视频一区二区| 北条麻妃国产九九精品视频| 国产麻豆精品久久一二三| 免费在线观看不卡| 国产一区二区三区在线观看免费视频| 亚洲成a人片在线观看中文| 亚洲国产精品久久艾草纯爱| 亚洲国产人成综合网站| 亚洲电影一级黄| 美女国产一区二区| 国产大陆a不卡| 91国模大尺度私拍在线视频| 毛片av一区二区| 中文字幕亚洲综合久久菠萝蜜| 五月激情综合婷婷| 亚洲国产成人91porn| 毛片av一区二区| 成人av电影在线播放| 欧美性受xxxx黑人xyx| 在线不卡欧美精品一区二区三区| 欧美疯狂性受xxxxx喷水图片| 精品欧美久久久| 伊人一区二区三区| 久久精品72免费观看| 色偷偷成人一区二区三区91| 欧美日韩国产乱码电影| 中文子幕无线码一区tr| 免费人成黄页网站在线一区二区| 97se亚洲国产综合自在线 | 国产精品99久| 欧美午夜在线观看| 中文字幕日韩精品一区| 久久精品国产99| 欧美在线观看视频一区二区| 国产日韩欧美一区二区三区乱码 | 亚洲一级二级在线| 99re8在线精品视频免费播放| 亚洲精品一线二线三线无人区| 亚洲精品国产精华液| 国产91露脸合集magnet| 欧美日韩美女一区二区| 91麻豆精品91久久久久久清纯| 成人国产精品视频| 国产亚洲精品aa午夜观看| 午夜精品一区在线观看| 欧美性大战久久久| 一级特黄大欧美久久久| 不卡的电视剧免费网站有什么| 日韩欧美国产wwwww| 人人爽香蕉精品| 久久伊人蜜桃av一区二区| 久久99热国产| 色综合天天综合在线视频| 日韩理论片网站| 国产精品亚洲成人| 亚洲码国产岛国毛片在线| 在线视频国内自拍亚洲视频| 亚洲高清不卡在线观看| 日韩免费观看高清完整版| 久久电影网电视剧免费观看| 欧美韩日一区二区三区四区| 在线视频欧美精品| 国产一区二区精品久久99| 亚洲视频一区二区免费在线观看 | 1024成人网色www| 制服丝袜一区二区三区| 国产盗摄视频一区二区三区| 亚洲午夜在线观看视频在线| 2020日本不卡一区二区视频| 精品1区2区3区| 国产主播一区二区| 午夜精品久久久久久久蜜桃app| 久久久久国产精品厨房| 精品视频在线免费| 国产91在线观看| 国产自产高清不卡| 精彩视频一区二区| 秋霞午夜av一区二区三区| 日韩电影免费在线观看网站| 亚洲丝袜制服诱惑| 7777精品伊人久久久大香线蕉 | 亚洲美女视频在线| 欧美国产国产综合| 国产精品高潮呻吟| 国产精品的网站| 亚洲男人天堂一区| 一区二区三区免费在线观看| 亚洲精品欧美专区| 免费高清视频精品| 一区二区三区自拍| 国产精品视频看| 亚洲视频小说图片| 亚洲综合免费观看高清在线观看| 日韩精品最新网址| 欧美国产视频在线| 亚洲综合精品久久| 天天综合色天天综合色h| 丝袜a∨在线一区二区三区不卡| 天天综合网 天天综合色| 国产成人亚洲综合a∨猫咪| 成人性生交大片免费看在线播放| av亚洲精华国产精华| 欧美婷婷六月丁香综合色| 亚洲精品一区二区在线观看| 国产精品福利一区二区| 爽好久久久欧美精品| 成人激情黄色小说| 精品美女被调教视频大全网站| 国产精品国产三级国产aⅴ入口| 亚洲一区二区影院| 国产精品一区二区三区99| 5月丁香婷婷综合| 亚洲婷婷国产精品电影人久久| 日韩二区在线观看| 色狠狠综合天天综合综合| 久久色在线观看| 秋霞成人午夜伦在线观看| 91色乱码一区二区三区| 国产肉丝袜一区二区| 捆绑紧缚一区二区三区视频| 91久久香蕉国产日韩欧美9色| 国产精品丝袜黑色高跟| 国产麻豆精品theporn| 日韩你懂的在线播放| 日一区二区三区| 日韩一区二区高清| 美日韩黄色大片| 精品成人在线观看| 国产一区二区福利视频| 久久综合久久综合久久综合| 精品写真视频在线观看| 91麻豆自制传媒国产之光| 国产偷v国产偷v亚洲高清| 成人精品在线视频观看| 久久久久国产精品麻豆ai换脸 | 麻豆精品久久精品色综合| 欧美视频在线观看一区二区| 亚洲成人7777| 欧美大胆人体bbbb| 不卡电影一区二区三区| 亚洲精品伦理在线| 精品国产一区二区亚洲人成毛片 | 免费欧美高清视频| 2023国产精华国产精品| 91在线丨porny丨国产| 日韩国产高清在线| 亚洲视频资源在线| 67194成人在线观看| 91麻豆福利精品推荐| 国产一区二三区| 日本中文一区二区三区| 久久―日本道色综合久久| 欧美伊人久久久久久久久影院| 国产在线精品国自产拍免费| 亚洲三级在线免费观看| 久久久九九九九| 这里只有精品免费| 欧美日韩免费一区二区三区| 国产一区二区三区香蕉| 日本午夜一区二区| 午夜欧美一区二区三区在线播放| 国产精品国产三级国产三级人妇 | 69堂国产成人免费视频| 在线看国产一区| 欧美自拍丝袜亚洲| 日本电影欧美片|