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

📄 frmmain.vb

📁 重排九宫问题的启发式搜索算法求解
💻 VB
📖 第 1 页 / 共 3 页
字号:
Public Class frmMain
    Inherits System.Windows.Forms.Form

#Region " Windows 窗体设计器生成的代码 "

    Public Sub New()
        MyBase.New()

        '该调用是 Windows 窗体设计器所必需的。
        InitializeComponent()

        '在 InitializeComponent() 调用之后添加任何初始化

    End Sub

    '窗体重写 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 窗体设计器所必需的
    Private components As System.ComponentModel.IContainer

    '注意: 以下过程是 Windows 窗体设计器所必需的
    '可以使用 Windows 窗体设计器修改此过程。
    '不要使用代码编辑器修改它。
    Friend WithEvents txtIN As System.Windows.Forms.TextBox
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents txt1 As System.Windows.Forms.TextBox
    Friend WithEvents txt2 As System.Windows.Forms.TextBox
    Friend WithEvents txt3 As System.Windows.Forms.TextBox
    Friend WithEvents txt4 As System.Windows.Forms.TextBox
    Friend WithEvents txt5 As System.Windows.Forms.TextBox
    Friend WithEvents txt6 As System.Windows.Forms.TextBox
    Friend WithEvents txt7 As System.Windows.Forms.TextBox
    Friend WithEvents txt8 As System.Windows.Forms.TextBox
    Friend WithEvents txt9 As System.Windows.Forms.TextBox
    Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents cmdOK As System.Windows.Forms.Button
    Friend WithEvents GroupBox3 As System.Windows.Forms.GroupBox
    Friend WithEvents txt99 As System.Windows.Forms.TextBox
    Friend WithEvents txt88 As System.Windows.Forms.TextBox
    Friend WithEvents txt77 As System.Windows.Forms.TextBox
    Friend WithEvents txt66 As System.Windows.Forms.TextBox
    Friend WithEvents txt55 As System.Windows.Forms.TextBox
    Friend WithEvents txt44 As System.Windows.Forms.TextBox
    Friend WithEvents txt33 As System.Windows.Forms.TextBox
    Friend WithEvents txt22 As System.Windows.Forms.TextBox
    Friend WithEvents txt11 As System.Windows.Forms.TextBox
    Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu
    Friend WithEvents MenuItem1 As System.Windows.Forms.MenuItem
    Friend WithEvents mnuSaveBest As System.Windows.Forms.MenuItem
    Friend WithEvents mnuSaveGo As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItem4 As System.Windows.Forms.MenuItem
    Friend WithEvents mnuexit As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItem7 As System.Windows.Forms.MenuItem
    Friend WithEvents mnuHow As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItem9 As System.Windows.Forms.MenuItem
    Friend WithEvents mnuAbout As System.Windows.Forms.MenuItem
    Friend WithEvents SFD1 As System.Windows.Forms.SaveFileDialog
    Friend WithEvents txtSavePath As System.Windows.Forms.TextBox
    Friend WithEvents lblGo As System.Windows.Forms.Label
    Friend WithEvents lblBest As System.Windows.Forms.Label
    Friend WithEvents lstbest As System.Windows.Forms.RichTextBox
    Friend WithEvents lstGo As System.Windows.Forms.RichTextBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmMain))
        Me.txtIN = New System.Windows.Forms.TextBox
        Me.Label1 = New System.Windows.Forms.Label
        Me.GroupBox1 = New System.Windows.Forms.GroupBox
        Me.txt9 = New System.Windows.Forms.TextBox
        Me.txt8 = New System.Windows.Forms.TextBox
        Me.txt7 = New System.Windows.Forms.TextBox
        Me.txt6 = New System.Windows.Forms.TextBox
        Me.txt5 = New System.Windows.Forms.TextBox
        Me.txt4 = New System.Windows.Forms.TextBox
        Me.txt3 = New System.Windows.Forms.TextBox
        Me.txt2 = New System.Windows.Forms.TextBox
        Me.txt1 = New System.Windows.Forms.TextBox
        Me.GroupBox2 = New System.Windows.Forms.GroupBox
        Me.lstGo = New System.Windows.Forms.RichTextBox
        Me.lstbest = New System.Windows.Forms.RichTextBox
        Me.lblBest = New System.Windows.Forms.Label
        Me.lblGo = New System.Windows.Forms.Label
        Me.GroupBox3 = New System.Windows.Forms.GroupBox
        Me.txt99 = New System.Windows.Forms.TextBox
        Me.txt88 = New System.Windows.Forms.TextBox
        Me.txt77 = New System.Windows.Forms.TextBox
        Me.txt66 = New System.Windows.Forms.TextBox
        Me.txt55 = New System.Windows.Forms.TextBox
        Me.txt44 = New System.Windows.Forms.TextBox
        Me.txt33 = New System.Windows.Forms.TextBox
        Me.txt22 = New System.Windows.Forms.TextBox
        Me.txt11 = New System.Windows.Forms.TextBox
        Me.Label2 = New System.Windows.Forms.Label
        Me.Label3 = New System.Windows.Forms.Label
        Me.cmdOK = New System.Windows.Forms.Button
        Me.MainMenu1 = New System.Windows.Forms.MainMenu
        Me.MenuItem1 = New System.Windows.Forms.MenuItem
        Me.mnuSaveBest = New System.Windows.Forms.MenuItem
        Me.mnuSaveGo = New System.Windows.Forms.MenuItem
        Me.MenuItem4 = New System.Windows.Forms.MenuItem
        Me.mnuexit = New System.Windows.Forms.MenuItem
        Me.MenuItem7 = New System.Windows.Forms.MenuItem
        Me.mnuHow = New System.Windows.Forms.MenuItem
        Me.MenuItem9 = New System.Windows.Forms.MenuItem
        Me.mnuAbout = New System.Windows.Forms.MenuItem
        Me.SFD1 = New System.Windows.Forms.SaveFileDialog
        Me.txtSavePath = New System.Windows.Forms.TextBox
        Me.GroupBox1.SuspendLayout()
        Me.GroupBox2.SuspendLayout()
        Me.GroupBox3.SuspendLayout()
        Me.SuspendLayout()
        '
        'txtIN
        '
        Me.txtIN.AcceptsReturn = True
        Me.txtIN.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(128, Byte), CType(255, Byte))
        Me.txtIN.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.txtIN.ForeColor = System.Drawing.Color.Lime
        Me.txtIN.Location = New System.Drawing.Point(160, 8)
        Me.txtIN.Name = "txtIN"
        Me.txtIN.Size = New System.Drawing.Size(208, 23)
        Me.txtIN.TabIndex = 0
        Me.txtIN.Text = ""
        '
        'Label1
        '
        Me.Label1.Location = New System.Drawing.Point(16, 16)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(128, 23)
        Me.Label1.TabIndex = 2
        Me.Label1.Text = "连续输入初始化数据:"
        '
        'GroupBox1
        '
        Me.GroupBox1.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(128, Byte), CType(255, Byte))
        Me.GroupBox1.Controls.Add(Me.txt9)
        Me.GroupBox1.Controls.Add(Me.txt8)
        Me.GroupBox1.Controls.Add(Me.txt7)
        Me.GroupBox1.Controls.Add(Me.txt6)
        Me.GroupBox1.Controls.Add(Me.txt5)
        Me.GroupBox1.Controls.Add(Me.txt4)
        Me.GroupBox1.Controls.Add(Me.txt3)
        Me.GroupBox1.Controls.Add(Me.txt2)
        Me.GroupBox1.Controls.Add(Me.txt1)
        Me.GroupBox1.ForeColor = System.Drawing.Color.FromArgb(CType(255, Byte), CType(192, Byte), CType(255, Byte))
        Me.GroupBox1.Location = New System.Drawing.Point(16, 24)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(128, 128)
        Me.GroupBox1.TabIndex = 3
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "初始值:"
        '
        'txt9
        '
        Me.txt9.BackColor = System.Drawing.Color.FromArgb(CType(192, Byte), CType(192, Byte), CType(255, Byte))
        Me.txt9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txt9.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.txt9.ForeColor = System.Drawing.Color.Lime
        Me.txt9.Location = New System.Drawing.Point(88, 88)
        Me.txt9.Name = "txt9"
        Me.txt9.ReadOnly = True
        Me.txt9.Size = New System.Drawing.Size(21, 21)
        Me.txt9.TabIndex = 9
        Me.txt9.Text = "0"
        Me.txt9.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'txt8
        '
        Me.txt8.BackColor = System.Drawing.Color.FromArgb(CType(192, Byte), CType(192, Byte), CType(255, Byte))
        Me.txt8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txt8.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.txt8.ForeColor = System.Drawing.Color.Lime
        Me.txt8.Location = New System.Drawing.Point(56, 88)
        Me.txt8.Name = "txt8"
        Me.txt8.ReadOnly = True
        Me.txt8.Size = New System.Drawing.Size(21, 21)
        Me.txt8.TabIndex = 8
        Me.txt8.Text = "0"
        Me.txt8.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'txt7
        '
        Me.txt7.BackColor = System.Drawing.Color.FromArgb(CType(192, Byte), CType(192, Byte), CType(255, Byte))
        Me.txt7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txt7.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.txt7.ForeColor = System.Drawing.Color.Lime
        Me.txt7.Location = New System.Drawing.Point(24, 88)
        Me.txt7.Name = "txt7"
        Me.txt7.ReadOnly = True
        Me.txt7.Size = New System.Drawing.Size(21, 21)
        Me.txt7.TabIndex = 7
        Me.txt7.Text = "0"
        Me.txt7.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'txt6
        '
        Me.txt6.BackColor = System.Drawing.Color.FromArgb(CType(192, Byte), CType(192, Byte), CType(255, Byte))
        Me.txt6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txt6.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.txt6.ForeColor = System.Drawing.Color.Lime
        Me.txt6.Location = New System.Drawing.Point(88, 56)
        Me.txt6.Name = "txt6"
        Me.txt6.ReadOnly = True
        Me.txt6.Size = New System.Drawing.Size(21, 21)
        Me.txt6.TabIndex = 6
        Me.txt6.Text = "0"
        Me.txt6.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'txt5
        '
        Me.txt5.BackColor = System.Drawing.Color.FromArgb(CType(192, Byte), CType(192, Byte), CType(255, Byte))
        Me.txt5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txt5.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.txt5.ForeColor = System.Drawing.Color.Lime
        Me.txt5.Location = New System.Drawing.Point(56, 56)
        Me.txt5.Name = "txt5"
        Me.txt5.ReadOnly = True
        Me.txt5.Size = New System.Drawing.Size(21, 21)
        Me.txt5.TabIndex = 5
        Me.txt5.Text = "0"
        Me.txt5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'txt4
        '
        Me.txt4.BackColor = System.Drawing.Color.FromArgb(CType(192, Byte), CType(192, Byte), CType(255, Byte))
        Me.txt4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txt4.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.txt4.ForeColor = System.Drawing.Color.Lime
        Me.txt4.Location = New System.Drawing.Point(24, 56)
        Me.txt4.Name = "txt4"
        Me.txt4.ReadOnly = True
        Me.txt4.Size = New System.Drawing.Size(21, 21)
        Me.txt4.TabIndex = 4
        Me.txt4.Text = "0"
        Me.txt4.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'txt3
        '
        Me.txt3.BackColor = System.Drawing.Color.FromArgb(CType(192, Byte), CType(192, Byte), CType(255, Byte))
        Me.txt3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txt3.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.txt3.ForeColor = System.Drawing.Color.Lime
        Me.txt3.Location = New System.Drawing.Point(88, 24)
        Me.txt3.Name = "txt3"
        Me.txt3.ReadOnly = True
        Me.txt3.Size = New System.Drawing.Size(21, 21)
        Me.txt3.TabIndex = 3
        Me.txt3.Text = "0"
        Me.txt3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'txt2
        '
        Me.txt2.BackColor = System.Drawing.Color.FromArgb(CType(192, Byte), CType(192, Byte), CType(255, Byte))
        Me.txt2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txt2.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.txt2.ForeColor = System.Drawing.Color.Lime
        Me.txt2.Location = New System.Drawing.Point(56, 24)
        Me.txt2.Name = "txt2"
        Me.txt2.ReadOnly = True
        Me.txt2.Size = New System.Drawing.Size(21, 21)
        Me.txt2.TabIndex = 2
        Me.txt2.Text = "0"
        Me.txt2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'txt1
        '
        Me.txt1.BackColor = System.Drawing.Color.FromArgb(CType(192, Byte), CType(192, Byte), CType(255, Byte))
        Me.txt1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txt1.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.txt1.ForeColor = System.Drawing.Color.Lime
        Me.txt1.Location = New System.Drawing.Point(24, 24)
        Me.txt1.Name = "txt1"
        Me.txt1.ReadOnly = True
        Me.txt1.Size = New System.Drawing.Size(21, 21)
        Me.txt1.TabIndex = 1
        Me.txt1.Text = "0"
        Me.txt1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'GroupBox2
        '
        Me.GroupBox2.BackColor = System.Drawing.Color.CornflowerBlue
        Me.GroupBox2.Controls.Add(Me.lstGo)
        Me.GroupBox2.Controls.Add(Me.lstbest)
        Me.GroupBox2.Controls.Add(Me.lblBest)
        Me.GroupBox2.Controls.Add(Me.lblGo)
        Me.GroupBox2.Controls.Add(Me.GroupBox3)
        Me.GroupBox2.Controls.Add(Me.GroupBox1)
        Me.GroupBox2.Controls.Add(Me.Label2)
        Me.GroupBox2.Controls.Add(Me.Label3)
        Me.GroupBox2.ForeColor = System.Drawing.Color.Cyan
        Me.GroupBox2.Location = New System.Drawing.Point(16, 48)
        Me.GroupBox2.Name = "GroupBox2"
        Me.GroupBox2.Size = New System.Drawing.Size(520, 312)
        Me.GroupBox2.TabIndex = 5
        Me.GroupBox2.TabStop = False
        Me.GroupBox2.Text = "显示:"
        '
        'lstGo
        '
        Me.lstGo.BackColor = System.Drawing.Color.FromArgb(CType(0, Byte), CType(0, Byte), CType(192, Byte))
        Me.lstGo.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.lstGo.ForeColor = System.Drawing.Color.Lime
        Me.lstGo.Location = New System.Drawing.Point(152, 48)
        Me.lstGo.Name = "lstGo"
        Me.lstGo.Size = New System.Drawing.Size(184, 240)
        Me.lstGo.TabIndex = 11
        Me.lstGo.Text = ""
        '
        'lstbest
        '
        Me.lstbest.BackColor = System.Drawing.Color.FromArgb(CType(0, Byte), CType(0, Byte), CType(192, Byte))
        Me.lstbest.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
        Me.lstbest.ForeColor = System.Drawing.Color.Lime
        Me.lstbest.Location = New System.Drawing.Point(344, 48)
        Me.lstbest.Name = "lstbest"
        Me.lstbest.Size = New System.Drawing.Size(160, 240)
        Me.lstbest.TabIndex = 10
        Me.lstbest.Text = ""
        '
        'lblBest
        '
        Me.lblBest.ForeColor = System.Drawing.Color.Magenta
        Me.lblBest.Location = New System.Drawing.Point(424, 24)

⌨️ 快捷键说明

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