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

📄 frmmain.vb

📁 neural networks applications
💻 VB
📖 第 1 页 / 共 3 页
字号:
Public Class frmMain
    Inherits System.Windows.Forms.Form


    Private StopTraining As Boolean = False



#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 imlMain As System.Windows.Forms.ImageList
    Friend WithEvents tbMain As System.Windows.Forms.TabControl
    Friend WithEvents tabTraining As System.Windows.Forms.TabPage
    Friend WithEvents TabPage1 As System.Windows.Forms.TabPage
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents cmdTrain As System.Windows.Forms.Button
    Friend WithEvents cmdClearAll As System.Windows.Forms.Button
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents cmdLoad As System.Windows.Forms.Button
    Friend WithEvents cmdSave As System.Windows.Forms.Button
    Friend WithEvents cmdExit As System.Windows.Forms.Button
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents cmdDetect As System.Windows.Forms.Button
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents picImgDetect As System.Windows.Forms.PictureBox
    Friend WithEvents lvMain As System.Windows.Forms.ListView
    Friend WithEvents txtTrainTimes As System.Windows.Forms.TextBox
    Friend WithEvents pbTrain As System.Windows.Forms.ProgressBar
    Friend WithEvents cmdBrowseDetect As System.Windows.Forms.Button
    Friend WithEvents txtAsciiDetect As System.Windows.Forms.TextBox
    Friend WithEvents txtPatternDetect As System.Windows.Forms.TextBox
    Friend WithEvents cmdRestart As System.Windows.Forms.Button
    Friend WithEvents pnTrain As System.Windows.Forms.Panel
    Friend WithEvents lblTrain As System.Windows.Forms.Label
    Friend WithEvents cmdCancel As System.Windows.Forms.Button
    Friend WithEvents lblTrainInfo As System.Windows.Forms.Label
    Friend WithEvents lblTrainStart As System.Windows.Forms.Label
    Friend WithEvents pnNetwork As System.Windows.Forms.Panel
    Friend WithEvents picImgTrain As System.Windows.Forms.PictureBox
    Friend WithEvents cmdAddToQueue As System.Windows.Forms.Button
    Friend WithEvents cmdBrowse As System.Windows.Forms.Button
    Friend WithEvents txtAsciiValue As System.Windows.Forms.TextBox
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents lblImage As System.Windows.Forms.Label
    Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
    Friend WithEvents GroupBox3 As System.Windows.Forms.GroupBox
    Friend WithEvents GroupBox4 As System.Windows.Forms.GroupBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container()
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmMain))
        Me.imlMain = New System.Windows.Forms.ImageList(Me.components)
        Me.tbMain = New System.Windows.Forms.TabControl()
        Me.tabTraining = New System.Windows.Forms.TabPage()
        Me.GroupBox2 = New System.Windows.Forms.GroupBox()
        Me.lblImage = New System.Windows.Forms.Label()
        Me.Label1 = New System.Windows.Forms.Label()
        Me.cmdAddToQueue = New System.Windows.Forms.Button()
        Me.txtAsciiValue = New System.Windows.Forms.TextBox()
        Me.cmdBrowse = New System.Windows.Forms.Button()
        Me.picImgTrain = New System.Windows.Forms.PictureBox()
        Me.Label2 = New System.Windows.Forms.Label()
        Me.txtTrainTimes = New System.Windows.Forms.TextBox()
        Me.cmdTrain = New System.Windows.Forms.Button()
        Me.GroupBox1 = New System.Windows.Forms.GroupBox()
        Me.cmdClearAll = New System.Windows.Forms.Button()
        Me.lvMain = New System.Windows.Forms.ListView()
        Me.TabPage1 = New System.Windows.Forms.TabPage()
        Me.GroupBox4 = New System.Windows.Forms.GroupBox()
        Me.Label4 = New System.Windows.Forms.Label()
        Me.txtPatternDetect = New System.Windows.Forms.TextBox()
        Me.Label5 = New System.Windows.Forms.Label()
        Me.txtAsciiDetect = New System.Windows.Forms.TextBox()
        Me.GroupBox3 = New System.Windows.Forms.GroupBox()
        Me.Label3 = New System.Windows.Forms.Label()
        Me.picImgDetect = New System.Windows.Forms.PictureBox()
        Me.cmdDetect = New System.Windows.Forms.Button()
        Me.cmdBrowseDetect = New System.Windows.Forms.Button()
        Me.pbTrain = New System.Windows.Forms.ProgressBar()
        Me.cmdLoad = New System.Windows.Forms.Button()
        Me.cmdSave = New System.Windows.Forms.Button()
        Me.cmdExit = New System.Windows.Forms.Button()
        Me.cmdRestart = New System.Windows.Forms.Button()
        Me.pnTrain = New System.Windows.Forms.Panel()
        Me.lblTrainStart = New System.Windows.Forms.Label()
        Me.cmdCancel = New System.Windows.Forms.Button()
        Me.lblTrainInfo = New System.Windows.Forms.Label()
        Me.lblTrain = New System.Windows.Forms.Label()
        Me.pnNetwork = New System.Windows.Forms.Panel()
        Me.tbMain.SuspendLayout()
        Me.tabTraining.SuspendLayout()
        Me.GroupBox2.SuspendLayout()
        Me.GroupBox1.SuspendLayout()
        Me.TabPage1.SuspendLayout()
        Me.GroupBox4.SuspendLayout()
        Me.GroupBox3.SuspendLayout()
        Me.pnTrain.SuspendLayout()
        Me.pnNetwork.SuspendLayout()
        Me.SuspendLayout()
        '
        'imlMain
        '
        Me.imlMain.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit
        Me.imlMain.ImageSize = New System.Drawing.Size(20, 20)
        Me.imlMain.TransparentColor = System.Drawing.Color.Transparent
        '
        'tbMain
        '
        Me.tbMain.Appearance = System.Windows.Forms.TabAppearance.FlatButtons
        Me.tbMain.Controls.AddRange(New System.Windows.Forms.Control() {Me.tabTraining, Me.TabPage1})
        Me.tbMain.Location = New System.Drawing.Point(8, 61)
        Me.tbMain.Name = "tbMain"
        Me.tbMain.SelectedIndex = 0
        Me.tbMain.Size = New System.Drawing.Size(547, 378)
        Me.tbMain.TabIndex = 0
        '
        'tabTraining
        '
        Me.tabTraining.BackColor = System.Drawing.Color.White
        Me.tabTraining.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
        Me.tabTraining.Controls.AddRange(New System.Windows.Forms.Control() {Me.GroupBox2, Me.Label2, Me.txtTrainTimes, Me.cmdTrain, Me.GroupBox1})
        Me.tabTraining.Location = New System.Drawing.Point(4, 25)
        Me.tabTraining.Name = "tabTraining"
        Me.tabTraining.Size = New System.Drawing.Size(539, 349)
        Me.tabTraining.TabIndex = 0
        Me.tabTraining.Text = "Train This Network"
        '
        'GroupBox2
        '
        Me.GroupBox2.Controls.AddRange(New System.Windows.Forms.Control() {Me.lblImage, Me.Label1, Me.cmdAddToQueue, Me.txtAsciiValue, Me.cmdBrowse, Me.picImgTrain})
        Me.GroupBox2.Location = New System.Drawing.Point(7, 9)
        Me.GroupBox2.Name = "GroupBox2"
        Me.GroupBox2.Size = New System.Drawing.Size(514, 102)
        Me.GroupBox2.TabIndex = 13
        Me.GroupBox2.TabStop = False
        Me.GroupBox2.Text = "Add Data To Training Queue"
        '
        'lblImage
        '
        Me.lblImage.BackColor = System.Drawing.Color.White
        Me.lblImage.Location = New System.Drawing.Point(8, 27)
        Me.lblImage.Name = "lblImage"
        Me.lblImage.Size = New System.Drawing.Size(114, 22)
        Me.lblImage.TabIndex = 1
        Me.lblImage.Text = "Image Or Pattern"
        '
        'Label1
        '
        Me.Label1.BackColor = System.Drawing.Color.White
        Me.Label1.Location = New System.Drawing.Point(253, 21)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(189, 20)
        Me.Label1.TabIndex = 3
        Me.Label1.Text = "Equivalent ASCII Character"
        '
        'cmdAddToQueue
        '
        Me.cmdAddToQueue.BackColor = System.Drawing.SystemColors.Control
        Me.cmdAddToQueue.Location = New System.Drawing.Point(399, 58)
        Me.cmdAddToQueue.Name = "cmdAddToQueue"
        Me.cmdAddToQueue.Size = New System.Drawing.Size(96, 24)
        Me.cmdAddToQueue.TabIndex = 6
        Me.cmdAddToQueue.Text = "Add To Queue"
        '
        'txtAsciiValue
        '
        Me.txtAsciiValue.Location = New System.Drawing.Point(251, 61)
        Me.txtAsciiValue.Name = "txtAsciiValue"
        Me.txtAsciiValue.Size = New System.Drawing.Size(106, 20)
        Me.txtAsciiValue.TabIndex = 4
        Me.txtAsciiValue.Text = ""
        '
        'cmdBrowse
        '
        Me.cmdBrowse.BackColor = System.Drawing.SystemColors.Control
        Me.cmdBrowse.Location = New System.Drawing.Point(50, 57)
        Me.cmdBrowse.Name = "cmdBrowse"
        Me.cmdBrowse.Size = New System.Drawing.Size(67, 24)
        Me.cmdBrowse.TabIndex = 5
        Me.cmdBrowse.Text = "Browse"
        '
        'picImgTrain
        '
        Me.picImgTrain.BackColor = System.Drawing.Color.White
        Me.picImgTrain.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.picImgTrain.Location = New System.Drawing.Point(10, 59)
        Me.picImgTrain.Name = "picImgTrain"
        Me.picImgTrain.Size = New System.Drawing.Size(20, 20)
        Me.picImgTrain.TabIndex = 10
        Me.picImgTrain.TabStop = False
        '
        'Label2
        '
        Me.Label2.Location = New System.Drawing.Point(229, 319)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(81, 18)
        Me.Label2.TabIndex = 12
        Me.Label2.Text = "Times"
        '
        'txtTrainTimes
        '
        Me.txtTrainTimes.Location = New System.Drawing.Point(166, 316)
        Me.txtTrainTimes.Name = "txtTrainTimes"
        Me.txtTrainTimes.Size = New System.Drawing.Size(57, 20)
        Me.txtTrainTimes.TabIndex = 11
        Me.txtTrainTimes.Text = "1000"
        '
        'cmdTrain
        '
        Me.cmdTrain.BackColor = System.Drawing.SystemColors.Control
        Me.cmdTrain.Location = New System.Drawing.Point(11, 313)
        Me.cmdTrain.Name = "cmdTrain"
        Me.cmdTrain.Size = New System.Drawing.Size(143, 24)
        Me.cmdTrain.TabIndex = 7
        Me.cmdTrain.Text = "Start Training"
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.AddRange(New System.Windows.Forms.Control() {Me.cmdClearAll, Me.lvMain})
        Me.GroupBox1.Location = New System.Drawing.Point(9, 114)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(520, 191)
        Me.GroupBox1.TabIndex = 0
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "Training Queue"
        '
        'cmdClearAll
        '
        Me.cmdClearAll.BackColor = System.Drawing.SystemColors.Control
        Me.cmdClearAll.Location = New System.Drawing.Point(401, 154)
        Me.cmdClearAll.Name = "cmdClearAll"
        Me.cmdClearAll.Size = New System.Drawing.Size(107, 24)
        Me.cmdClearAll.TabIndex = 8
        Me.cmdClearAll.Text = "Clear All"
        '
        'lvMain
        '
        Me.lvMain.Location = New System.Drawing.Point(7, 19)
        Me.lvMain.Name = "lvMain"
        Me.lvMain.Size = New System.Drawing.Size(506, 129)
        Me.lvMain.SmallImageList = Me.imlMain
        Me.lvMain.TabIndex = 1
        Me.lvMain.View = System.Windows.Forms.View.List

⌨️ 快捷键说明

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