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

📄 form1.vb

📁 Visual.Basic.NET实用编程百例-47.6M.zip
💻 VB
📖 第 1 页 / 共 2 页
字号:
Imports VB = Microsoft.VisualBasic
Public Class Form1
    Inherits System.Windows.Forms.Form
#Region "Windows 窗体设计器生成的代码"
    Public Sub New()
        MyBase.New()
        '此调用是 Windows 窗体设计器所必需的。
        InitializeComponent()
    End Sub
    '窗体重写处置,以清理组件列表。
    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 窗体设计器所必需的
    Private components As System.ComponentModel.IContainer
    Public ToolTip1 As System.Windows.Forms.ToolTip
    Public WithEvents cmbOrder As System.Windows.Forms.ComboBox
    Public WithEvents txtSize As System.Windows.Forms.TextBox
    Public WithEvents cmbSorts As System.Windows.Forms.ComboBox
    Public WithEvents lstSorted As System.Windows.Forms.ListBox
    Public WithEvents lstUnsorted As System.Windows.Forms.ListBox
    Public WithEvents lblIterations As System.Windows.Forms.Label
    Public WithEvents lblDuration As System.Windows.Forms.Label
    Public WithEvents lblEnd As System.Windows.Forms.Label
    Public WithEvents lblBegin As System.Windows.Forms.Label
    Public WithEvents Label3 As System.Windows.Forms.Label
    Public WithEvents Label2 As System.Windows.Forms.Label
    Public WithEvents Label1 As System.Windows.Forms.Label
    '注意: 以下过程是 Windows 窗体设计器所必需的
    '可以使用 Windows 窗体设计器来修改它。
    '不要使用代码编辑器修改它。
    Public WithEvents Button2 As System.Windows.Forms.Button
    Public WithEvents Button1 As System.Windows.Forms.Button
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container
        Me.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components)
        Me.cmbOrder = New System.Windows.Forms.ComboBox
        Me.txtSize = New System.Windows.Forms.TextBox
        Me.cmbSorts = New System.Windows.Forms.ComboBox
        Me.Button2 = New System.Windows.Forms.Button
        Me.Button1 = New System.Windows.Forms.Button
        Me.lstSorted = New System.Windows.Forms.ListBox
        Me.lstUnsorted = New System.Windows.Forms.ListBox
        Me.lblIterations = New System.Windows.Forms.Label
        Me.lblDuration = New System.Windows.Forms.Label
        Me.lblEnd = New System.Windows.Forms.Label
        Me.lblBegin = New System.Windows.Forms.Label
        Me.Label3 = New System.Windows.Forms.Label
        Me.Label2 = New System.Windows.Forms.Label
        Me.Label1 = New System.Windows.Forms.Label
        Me.SuspendLayout()
        '
        'cmbOrder
        '
        Me.cmbOrder.BackColor = System.Drawing.SystemColors.Window
        Me.cmbOrder.Cursor = System.Windows.Forms.Cursors.Default
        Me.cmbOrder.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cmbOrder.ForeColor = System.Drawing.SystemColors.WindowText
        Me.cmbOrder.Location = New System.Drawing.Point(160, 224)
        Me.cmbOrder.Name = "cmbOrder"
        Me.cmbOrder.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.cmbOrder.Size = New System.Drawing.Size(169, 20)
        Me.cmbOrder.TabIndex = 9
        '
        'txtSize
        '
        Me.txtSize.AcceptsReturn = True
        Me.txtSize.AutoSize = False
        Me.txtSize.BackColor = System.Drawing.SystemColors.Window
        Me.txtSize.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txtSize.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.txtSize.ForeColor = System.Drawing.SystemColors.WindowText
        Me.txtSize.Location = New System.Drawing.Point(240, 24)
        Me.txtSize.MaxLength = 0
        Me.txtSize.Name = "txtSize"
        Me.txtSize.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.txtSize.Size = New System.Drawing.Size(89, 19)
        Me.txtSize.TabIndex = 3
        Me.txtSize.Text = "88"
        '
        'cmbSorts
        '
        Me.cmbSorts.BackColor = System.Drawing.SystemColors.Window
        Me.cmbSorts.Cursor = System.Windows.Forms.Cursors.Default
        Me.cmbSorts.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cmbSorts.ForeColor = System.Drawing.SystemColors.WindowText
        Me.cmbSorts.Location = New System.Drawing.Point(160, 264)
        Me.cmbSorts.Name = "cmbSorts"
        Me.cmbSorts.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.cmbSorts.Size = New System.Drawing.Size(169, 20)
        Me.cmbSorts.TabIndex = 10
        '
        'Button2
        '
        Me.Button2.BackColor = System.Drawing.SystemColors.Control
        Me.Button2.Cursor = System.Windows.Forms.Cursors.Default
        Me.Button2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Button2.Location = New System.Drawing.Point(160, 296)
        Me.Button2.Name = "Button2"
        Me.Button2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Button2.Size = New System.Drawing.Size(169, 25)
        Me.Button2.TabIndex = 11
        Me.Button2.Text = "开始排序   >>"
        '
        'Button1
        '
        Me.Button1.BackColor = System.Drawing.SystemColors.Control
        Me.Button1.Cursor = System.Windows.Forms.Cursors.Default
        Me.Button1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Button1.Location = New System.Drawing.Point(160, 48)
        Me.Button1.Name = "Button1"
        Me.Button1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Button1.Size = New System.Drawing.Size(169, 25)
        Me.Button1.TabIndex = 4
        Me.Button1.Text = "<<   随机产生数组"
        '
        'lstSorted
        '
        Me.lstSorted.BackColor = System.Drawing.SystemColors.Window
        Me.lstSorted.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.lstSorted.Cursor = System.Windows.Forms.Cursors.Default
        Me.lstSorted.ForeColor = System.Drawing.SystemColors.WindowText
        Me.lstSorted.ItemHeight = 12
        Me.lstSorted.Location = New System.Drawing.Point(336, 24)
        Me.lstSorted.Name = "lstSorted"
        Me.lstSorted.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.lstSorted.Size = New System.Drawing.Size(145, 302)
        Me.lstSorted.TabIndex = 13
        '
        'lstUnsorted
        '
        Me.lstUnsorted.BackColor = System.Drawing.SystemColors.Window
        Me.lstUnsorted.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.lstUnsorted.Cursor = System.Windows.Forms.Cursors.Default
        Me.lstUnsorted.ForeColor = System.Drawing.SystemColors.WindowText
        Me.lstUnsorted.ItemHeight = 12
        Me.lstUnsorted.Location = New System.Drawing.Point(8, 24)
        Me.lstUnsorted.Name = "lstUnsorted"
        Me.lstUnsorted.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.lstUnsorted.Size = New System.Drawing.Size(145, 302)
        Me.lstUnsorted.TabIndex = 1
        '
        'lblIterations
        '
        Me.lblIterations.AutoSize = True
        Me.lblIterations.BackColor = System.Drawing.SystemColors.ScrollBar
        Me.lblIterations.Cursor = System.Windows.Forms.Cursors.Default
        Me.lblIterations.ForeColor = System.Drawing.SystemColors.WindowText
        Me.lblIterations.Location = New System.Drawing.Point(160, 152)
        Me.lblIterations.Name = "lblIterations"
        Me.lblIterations.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.lblIterations.Size = New System.Drawing.Size(60, 17)
        Me.lblIterations.TabIndex = 8
        Me.lblIterations.Text = "循环次数:"
        '
        'lblDuration
        '
        Me.lblDuration.AutoSize = True
        Me.lblDuration.BackColor = System.Drawing.SystemColors.ScrollBar
        Me.lblDuration.Cursor = System.Windows.Forms.Cursors.Default
        Me.lblDuration.ForeColor = System.Drawing.SystemColors.WindowText
        Me.lblDuration.Location = New System.Drawing.Point(160, 128)
        Me.lblDuration.Name = "lblDuration"
        Me.lblDuration.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.lblDuration.Size = New System.Drawing.Size(60, 17)
        Me.lblDuration.TabIndex = 7
        Me.lblDuration.Text = "持续时间:"
        '
        'lblEnd
        '
        Me.lblEnd.AutoSize = True
        Me.lblEnd.BackColor = System.Drawing.SystemColors.ScrollBar
        Me.lblEnd.Cursor = System.Windows.Forms.Cursors.Default
        Me.lblEnd.ForeColor = System.Drawing.SystemColors.WindowText
        Me.lblEnd.Location = New System.Drawing.Point(160, 104)
        Me.lblEnd.Name = "lblEnd"
        Me.lblEnd.RightToLeft = System.Windows.Forms.RightToLeft.No

⌨️ 快捷键说明

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