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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? frmdialogs.vb

?? It is a software which can be used to open some file and edit it
?? VB
字號(hào):
Imports System.IO
Imports System.Drawing.Printing


Public Class frmDialogs

    Inherits System.Windows.Forms.Form

    Private strFileName As String = " C:\Temp\Text Document.Text"

    Private objStreamToPrint As StreamReader

    Private objPrintFont As Font


#Region " Windows 窗體設(shè)計(jì)器生成的代碼 "

    Public Sub New()
        MyBase.New()

        '該調(diào)用是 Windows 窗體設(shè)計(jì)器所必需的。
        InitializeComponent()

        '在 InitializeComponent() 調(diào)用之后添加任何初始化

    End Sub

    '窗體重寫(xiě) dispose 以清理組件列表。
    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

    'Windows 窗體設(shè)計(jì)器所必需的
    Private components As System.ComponentModel.IContainer

    '注意: 以下過(guò)程是 Windows 窗體設(shè)計(jì)器所必需的
    '可以使用 Windows 窗體設(shè)計(jì)器修改此過(guò)程。
    '不要使用代碼編輯器修改它。
    Friend WithEvents txtFile As System.Windows.Forms.TextBox
    Friend WithEvents btnOpen As System.Windows.Forms.Button
    Friend WithEvents OpenFileDialog1 As System.Windows.Forms.OpenFileDialog
    Friend WithEvents btnSave As System.Windows.Forms.Button
    Friend WithEvents SaveFileDialog1 As System.Windows.Forms.SaveFileDialog
    Friend WithEvents btnFont As System.Windows.Forms.Button
    Friend WithEvents FontDialog1 As System.Windows.Forms.FontDialog
    Friend WithEvents btnColor As System.Windows.Forms.Button
    Friend WithEvents ColorDialog1 As System.Windows.Forms.ColorDialog
    Friend WithEvents btnPrint As System.Windows.Forms.Button
    Friend WithEvents PrintDialog1 As System.Windows.Forms.PrintDialog
    Friend WithEvents btnBrowse As System.Windows.Forms.Button
    Friend WithEvents FolderBrowserDialog1 As System.Windows.Forms.FolderBrowserDialog
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.txtFile = New System.Windows.Forms.TextBox
        Me.btnOpen = New System.Windows.Forms.Button
        Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog
        Me.btnSave = New System.Windows.Forms.Button
        Me.SaveFileDialog1 = New System.Windows.Forms.SaveFileDialog
        Me.btnFont = New System.Windows.Forms.Button
        Me.FontDialog1 = New System.Windows.Forms.FontDialog
        Me.btnColor = New System.Windows.Forms.Button
        Me.ColorDialog1 = New System.Windows.Forms.ColorDialog
        Me.btnPrint = New System.Windows.Forms.Button
        Me.PrintDialog1 = New System.Windows.Forms.PrintDialog
        Me.btnBrowse = New System.Windows.Forms.Button
        Me.FolderBrowserDialog1 = New System.Windows.Forms.FolderBrowserDialog
        Me.SuspendLayout()
        '
        'txtFile
        '
        Me.txtFile.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom), System.Windows.Forms.AnchorStyles)
        Me.txtFile.Location = New System.Drawing.Point(4, 8)
        Me.txtFile.Multiline = True
        Me.txtFile.Name = "txtFile"
        Me.txtFile.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
        Me.txtFile.Size = New System.Drawing.Size(352, 264)
        Me.txtFile.TabIndex = 0
        Me.txtFile.Text = ""
        '
        'btnOpen
        '
        Me.btnOpen.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.btnOpen.Location = New System.Drawing.Point(367, 8)
        Me.btnOpen.Name = "btnOpen"
        Me.btnOpen.TabIndex = 1
        Me.btnOpen.Text = "Open"
        '
        'btnSave
        '
        Me.btnSave.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.btnSave.Location = New System.Drawing.Point(367, 38)
        Me.btnSave.Name = "btnSave"
        Me.btnSave.TabIndex = 2
        Me.btnSave.Text = "Save"
        '
        'btnFont
        '
        Me.btnFont.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.btnFont.Location = New System.Drawing.Point(367, 68)
        Me.btnFont.Name = "btnFont"
        Me.btnFont.TabIndex = 3
        Me.btnFont.Text = "Font"
        '
        'btnColor
        '
        Me.btnColor.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.btnColor.Location = New System.Drawing.Point(367, 98)
        Me.btnColor.Name = "btnColor"
        Me.btnColor.TabIndex = 4
        Me.btnColor.Text = "Color"
        '
        'btnPrint
        '
        Me.btnPrint.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.btnPrint.Location = New System.Drawing.Point(367, 128)
        Me.btnPrint.Name = "btnPrint"
        Me.btnPrint.TabIndex = 5
        Me.btnPrint.Text = "Print"
        '
        'btnBrowse
        '
        Me.btnBrowse.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.btnBrowse.Location = New System.Drawing.Point(367, 158)
        Me.btnBrowse.Name = "btnBrowse"
        Me.btnBrowse.TabIndex = 6
        Me.btnBrowse.Text = "Browse"
        '
        'frmDialogs
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
        Me.ClientSize = New System.Drawing.Size(448, 270)
        Me.Controls.Add(Me.btnBrowse)
        Me.Controls.Add(Me.btnPrint)
        Me.Controls.Add(Me.btnColor)
        Me.Controls.Add(Me.btnFont)
        Me.Controls.Add(Me.btnSave)
        Me.Controls.Add(Me.btnOpen)
        Me.Controls.Add(Me.txtFile)
        Me.Name = "frmDialogs"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "Dialogs"
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private Sub txtFile_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtFile.TextChanged

    End Sub

    Private Sub btnOpen_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnOpen.Click

        With OpenFileDialog1
            .Filter = "Text files (*.text)|*.txt|All files (*.*)|*.*"

            .FilterIndex = 1

            .InitialDirectory = "C:\Temp\"

            .Title = "Demo Open File Dialog"

        End With

        If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then

            strFileName = OpenFileDialog1.FileName

            Dim objReader As StreamReader = New StreamReader(strFileName)

            txtFile.Text = objReader.ReadToEnd()

            objReader.Close()

            objReader = Nothing


        End If
    End Sub

    Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click

        With SaveFileDialog1

            .DefaultExt = "txt"

            .DefaultExt = strFileName

            .Filter = "Text files (*.text)|*.txt|All files (*.*)|*.*"

            .FilterIndex = 1

            .InitialDirectory = "C:\Temp\"

            .Title = "Demo Save File Dialog"

        End With

        If SaveFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then

            strFileName = SaveFileDialog1.FileName

            Dim objWriter As StreamWriter = New StreamWriter(strFileName, False)

            objWriter.Write(txtFile.Text)

            objWriter.Close()

            objWriter = Nothing

        End If

    End Sub

    Private Sub btnFont_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFont.Click

        FontDialog1.ShowColor = True

        If FontDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then

            txtFile.Font = FontDialog1.Font

            txtFile.ForeColor = FontDialog1.Color


        End If


    End Sub

    Private Sub btnColor_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnColor.Click

        If ColorDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then

            Me.BackColor = ColorDialog1.Color

        End If
    End Sub

    Private Sub objPrintDocument_PrintPage(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs)

        Dim sngLinesPerpage As Single = 0
        Dim sngVerticalPosition As Single = 0
        Dim intLineCount As Integer = 0
        Dim sngLeftMargin As Single = e.MarginBounds.Left
        Dim sngTopMargin As Single = e.MarginBounds.Top
        Dim strLine As String

   
        sngLinesPerpage = e.MarginBounds.Height / objPrintFont.GetHeight(e.Graphics)

       
        strLine = objStreamToPrint.ReadLine()

        While (intLineCount < sngLinesPerpage And Not (strLine Is Nothing))


            sngVerticalPosition = sngTopMargin + (intLineCount * objPrintFont.GetHeight(e.Graphics))

           
            e.Graphics.DrawString(strLine, objPrintFont, Brushes.Black, sngLeftMargin, sngVerticalPosition, New StringFormat)


            intLineCount = intLineCount + 1

            
            If (intLineCount < sngLinesPerpage) Then

                strLine = objStreamToPrint.ReadLine()

            End If

        End While


        If (strLine <> Nothing) Then

            e.HasMorePages = True
        Else

            e.HasMorePages = False

        End If

    End Sub



    Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrint.Click

        Dim objPrintDocument As PrintDocument = New PrintDocument

        objPrintDocument.DocumentName = "Text File Print Demo"

        PrintDialog1.AllowPrintToFile = False

        PrintDialog1.AllowSelection = False

        PrintDialog1.AllowSomePages = False

        PrintDialog1.Document = objPrintDocument

        If PrintDialog1.ShowDialog() = DialogResult.OK Then

            objStreamToPrint = New StreamReader(strFileName)

            objPrintFont = New Font("Arial", 10)

            AddHandler objPrintDocument.PrintPage, AddressOf objPrintDocument_PrintPage

            objPrintDocument.PrinterSettings = PrintDialog1.PrinterSettings

            objPrintDocument.Print()

            objStreamToPrint.Close()

            objStreamToPrint = Nothing


        End If


    End Sub

    Private Sub btnBrowse_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBrowse.Click

        FolderBrowserDialog1.Description = "Select a folder for your backups:"

        FolderBrowserDialog1.RootFolder = Environment.SpecialFolder.MyComputer

        FolderBrowserDialog1.ShowNewFolderButton = False


        If FolderBrowserDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then

            txtFile.Text = FolderBrowserDialog1.SelectedPath

        End If

    End Sub


End Class

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲电影在线免费观看| 精品亚洲aⅴ乱码一区二区三区| 久久精品在线观看| 精品人在线二区三区| 制服丝袜av成人在线看| 欧美另类久久久品| 欧美一区二区三区色| 91精品在线一区二区| 91麻豆精品国产91久久久使用方法 | 国产精品污网站| 国产亚洲美州欧州综合国| 久久影音资源网| 国产日韩欧美电影| 国产精品入口麻豆原神| 国产精品成人一区二区艾草| 一区精品在线播放| 一区2区3区在线看| 天堂资源在线中文精品| 视频一区二区三区中文字幕| 日韩国产高清在线| 久久se精品一区二区| 国产精品羞羞答答xxdd| 粉嫩久久99精品久久久久久夜| 国产高清成人在线| 成人免费看的视频| 欧美午夜精品久久久| 在线成人午夜影院| 久久欧美中文字幕| 亚洲欧洲日本在线| 亚洲成人黄色影院| 九色|91porny| 99精品黄色片免费大全| 欧美日韩mp4| 久久只精品国产| 亚洲人123区| 日日夜夜精品视频天天综合网| 麻豆精品视频在线观看免费 | 欧美性生活久久| 欧美一区二区三区在线看| 久久久噜噜噜久噜久久综合| 欧美国产日韩a欧美在线观看| 亚洲人成影院在线观看| 日欧美一区二区| 国产1区2区3区精品美女| 色婷婷精品久久二区二区蜜臂av | 成人免费在线视频| 日韩制服丝袜av| 成人性色生活片| 欧美日韩亚洲国产综合| 久久久精品中文字幕麻豆发布| 一区精品在线播放| 麻豆91在线播放免费| 91亚洲精品久久久蜜桃网站 | 中文字幕在线观看一区| 欧美一区二区三区精品| 一级中文字幕一区二区| 丝袜美腿亚洲色图| 欧美日韩亚洲综合在线 | 午夜欧美电影在线观看| 久久国产尿小便嘘嘘尿| 色婷婷激情综合| 国产日韩欧美综合一区| 亚洲第一狼人社区| 粉嫩高潮美女一区二区三区| 欧美日韩中文字幕一区二区| 国产欧美一区二区三区在线看蜜臀 | 国产九色sp调教91| 欧美日本一区二区三区四区| 中文字幕av在线一区二区三区| 午夜精品福利一区二区蜜股av| 成人激情午夜影院| 日韩色在线观看| 亚洲国产精品自拍| 欧美日韩亚洲丝袜制服| 成人国产亚洲欧美成人综合网| 4438x成人网最大色成网站| 亚洲欧洲色图综合| 国产乱淫av一区二区三区| 欧美老人xxxx18| 亚洲人成网站在线| 成人黄色电影在线| 久久这里只有精品6| 天天色 色综合| 色婷婷久久久久swag精品 | 蜜桃av噜噜一区| 欧美性淫爽ww久久久久无| 国产精品久久午夜夜伦鲁鲁| 久久99国产精品免费网站| 91精品一区二区三区在线观看| 一区二区三区视频在线看| av网站免费线看精品| 国产精品妹子av| 国产经典欧美精品| 久久久午夜电影| 精品一区二区三区久久久| 日韩一区二区免费在线电影 | 国产精品99久久不卡二区| 精品国产乱码久久久久久久| 日韩福利电影在线观看| 欧美一区中文字幕| 婷婷成人激情在线网| 欧美图区在线视频| 一区二区不卡在线播放| 在线观看成人小视频| 亚洲欧美视频在线观看| 91一区二区在线| 亚洲女子a中天字幕| 91丨porny丨国产入口| 亚洲日穴在线视频| 91看片淫黄大片一级| 玉米视频成人免费看| 91官网在线免费观看| 亚洲午夜久久久久久久久电影网| 一本一本久久a久久精品综合麻豆| 亚洲欧美怡红院| 色综合 综合色| 一二三四区精品视频| 欧美日韩性生活| 日韩av午夜在线观看| 日韩女优制服丝袜电影| 激情久久五月天| 国产欧美日韩另类一区| 99国产精品国产精品久久| 亚洲乱码国产乱码精品精98午夜| 欧洲视频一区二区| 日韩精品三区四区| 久久一区二区三区四区| 丁香啪啪综合成人亚洲小说| 亚洲欧洲另类国产综合| 91福利在线观看| 首页综合国产亚洲丝袜| 欧美mv和日韩mv国产网站| 国产高清精品在线| 亚洲日本在线天堂| 欧美一区二区三区思思人| 国产精品综合网| 国产精品福利一区二区| 欧美系列一区二区| 久久99精品久久久久婷婷| 国产片一区二区| 欧美日韩亚洲综合在线| 韩日欧美一区二区三区| 日韩理论电影院| 欧美一卡二卡在线观看| 成人美女在线观看| 亚洲444eee在线观看| 精品对白一区国产伦| 97se亚洲国产综合自在线不卡| 亚洲国产一区二区视频| 精品国产亚洲在线| 色综合婷婷久久| 久草精品在线观看| 一区二区免费在线| 久久久青草青青国产亚洲免观| 在线观看免费成人| 国产大片一区二区| 亚洲国产精品久久不卡毛片| 精品国产乱码久久久久久免费 | 欧洲精品中文字幕| 狠狠色丁香久久婷婷综| 亚洲女子a中天字幕| 久久久亚洲精品一区二区三区 | 欧美性猛交xxxxxx富婆| 国内久久精品视频| 亚洲精品成人少妇| 国产亚洲福利社区一区| 欧美日韩一区视频| 成人av在线一区二区| 另类小说色综合网站| 亚洲激情五月婷婷| 国产日韩精品一区二区三区 | 91精品国产麻豆| 色噜噜狠狠成人中文综合| 国产乱子伦一区二区三区国色天香| 一区二区三区精品| 国产精品素人一区二区| 欧美一二区视频| 日本高清无吗v一区| 国产aⅴ综合色| 久久精品国产一区二区| 一区二区三区不卡视频| 中文字幕中文在线不卡住| 日韩欧美亚洲国产精品字幕久久久| 一本到不卡精品视频在线观看| 国产丶欧美丶日本不卡视频| 男女男精品网站| 亚洲国产日韩av| 亚洲欧美综合另类在线卡通| 2019国产精品| 日韩免费性生活视频播放| 欧美影院精品一区| 91影视在线播放| 99麻豆久久久国产精品免费| 国产一区二区毛片| 美女脱光内衣内裤视频久久网站| 婷婷综合五月天| 亚洲主播在线播放| 亚洲精品中文字幕在线观看| 中文字幕欧美日本乱码一线二线| 欧美大片免费久久精品三p|