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

📄 frmmain.vb

📁 上位机与下位机的USB通讯
💻 VB
📖 第 1 页 / 共 2 页
字号:
Imports System.Runtime.InteropServices

Public Class frmMain
    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

    '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 GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
    Friend WithEvents GroupBox3 As System.Windows.Forms.GroupBox
    Friend WithEvents GroupBox4 As System.Windows.Forms.GroupBox
    Friend WithEvents cmdExit As System.Windows.Forms.Button
    Friend WithEvents GroupBox5 As System.Windows.Forms.GroupBox
    Friend WithEvents GroupBox6 As System.Windows.Forms.GroupBox
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents chkLED1 As System.Windows.Forms.CheckBox
    Friend WithEvents chkLED2 As System.Windows.Forms.CheckBox
    Friend WithEvents Timer1 As System.Windows.Forms.Timer
    Friend WithEvents chkP0B3 As System.Windows.Forms.CheckBox
    Friend WithEvents chkP0B2 As System.Windows.Forms.CheckBox
    Friend WithEvents chkP0B1 As System.Windows.Forms.CheckBox
    Friend WithEvents chkP0B0 As System.Windows.Forms.CheckBox
    Friend WithEvents chkP1B0 As System.Windows.Forms.CheckBox
    Friend WithEvents chkP1B1 As System.Windows.Forms.CheckBox
    Friend WithEvents chkP1B2 As System.Windows.Forms.CheckBox
    Friend WithEvents chkP1B3 As System.Windows.Forms.CheckBox
    Friend WithEvents pbAnalog1 As System.Windows.Forms.ProgressBar
    Friend WithEvents pbAnalog2 As System.Windows.Forms.ProgressBar
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents lblAnalog1 As System.Windows.Forms.Label
    Friend WithEvents lblAnalog2 As System.Windows.Forms.Label
    Friend WithEvents chkButton2 As System.Windows.Forms.CheckBox
    Friend WithEvents chkButton1 As System.Windows.Forms.CheckBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container()
        Me.GroupBox1 = New System.Windows.Forms.GroupBox()
        Me.chkButton2 = New System.Windows.Forms.CheckBox()
        Me.chkButton1 = New System.Windows.Forms.CheckBox()
        Me.Label2 = New System.Windows.Forms.Label()
        Me.Label1 = New System.Windows.Forms.Label()
        Me.GroupBox2 = New System.Windows.Forms.GroupBox()
        Me.chkP0B0 = New System.Windows.Forms.CheckBox()
        Me.chkP0B1 = New System.Windows.Forms.CheckBox()
        Me.chkP0B2 = New System.Windows.Forms.CheckBox()
        Me.chkP0B3 = New System.Windows.Forms.CheckBox()
        Me.GroupBox3 = New System.Windows.Forms.GroupBox()
        Me.chkLED2 = New System.Windows.Forms.CheckBox()
        Me.chkLED1 = New System.Windows.Forms.CheckBox()
        Me.GroupBox4 = New System.Windows.Forms.GroupBox()
        Me.chkP1B0 = New System.Windows.Forms.CheckBox()
        Me.chkP1B1 = New System.Windows.Forms.CheckBox()
        Me.chkP1B2 = New System.Windows.Forms.CheckBox()
        Me.chkP1B3 = New System.Windows.Forms.CheckBox()
        Me.cmdExit = New System.Windows.Forms.Button()
        Me.GroupBox5 = New System.Windows.Forms.GroupBox()
        Me.lblAnalog1 = New System.Windows.Forms.Label()
        Me.Label4 = New System.Windows.Forms.Label()
        Me.pbAnalog1 = New System.Windows.Forms.ProgressBar()
        Me.GroupBox6 = New System.Windows.Forms.GroupBox()
        Me.lblAnalog2 = New System.Windows.Forms.Label()
        Me.Label3 = New System.Windows.Forms.Label()
        Me.pbAnalog2 = New System.Windows.Forms.ProgressBar()
        Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
        Me.GroupBox1.SuspendLayout()
        Me.GroupBox2.SuspendLayout()
        Me.GroupBox3.SuspendLayout()
        Me.GroupBox4.SuspendLayout()
        Me.GroupBox5.SuspendLayout()
        Me.GroupBox6.SuspendLayout()
        Me.SuspendLayout()
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.AddRange(New System.Windows.Forms.Control() {Me.chkButton2, Me.chkButton1, Me.Label2, Me.Label1})
        Me.GroupBox1.Location = New System.Drawing.Point(16, 8)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(136, 80)
        Me.GroupBox1.TabIndex = 1
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "Buttons"
        '
        'chkButton2
        '
        Me.chkButton2.Appearance = System.Windows.Forms.Appearance.Button
        Me.chkButton2.Enabled = False
        Me.chkButton2.Location = New System.Drawing.Point(24, 48)
        Me.chkButton2.Name = "chkButton2"
        Me.chkButton2.Size = New System.Drawing.Size(24, 24)
        Me.chkButton2.TabIndex = 3
        '
        'chkButton1
        '
        Me.chkButton1.Appearance = System.Windows.Forms.Appearance.Button
        Me.chkButton1.Enabled = False
        Me.chkButton1.Location = New System.Drawing.Point(24, 16)
        Me.chkButton1.Name = "chkButton1"
        Me.chkButton1.Size = New System.Drawing.Size(24, 24)
        Me.chkButton1.TabIndex = 2
        '
        'Label2
        '
        Me.Label2.Location = New System.Drawing.Point(56, 56)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(56, 16)
        Me.Label2.TabIndex = 1
        Me.Label2.Text = "Button 2"
        '
        'Label1
        '
        Me.Label1.Location = New System.Drawing.Point(56, 24)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(56, 16)
        Me.Label1.TabIndex = 0
        Me.Label1.Text = "Button 1"
        '
        'GroupBox2
        '
        Me.GroupBox2.Controls.AddRange(New System.Windows.Forms.Control() {Me.chkP0B0, Me.chkP0B1, Me.chkP0B2, Me.chkP0B3})
        Me.GroupBox2.Location = New System.Drawing.Point(16, 96)
        Me.GroupBox2.Name = "GroupBox2"
        Me.GroupBox2.Size = New System.Drawing.Size(136, 80)
        Me.GroupBox2.TabIndex = 2
        Me.GroupBox2.TabStop = False
        Me.GroupBox2.Text = "Port 0"
        '
        'chkP0B0
        '
        Me.chkP0B0.Appearance = System.Windows.Forms.Appearance.Button
        Me.chkP0B0.Location = New System.Drawing.Point(88, 32)
        Me.chkP0B0.Name = "chkP0B0"
        Me.chkP0B0.Size = New System.Drawing.Size(24, 24)
        Me.chkP0B0.TabIndex = 3
        Me.chkP0B0.Text = "0"
        '
        'chkP0B1
        '
        Me.chkP0B1.Appearance = System.Windows.Forms.Appearance.Button
        Me.chkP0B1.Location = New System.Drawing.Point(64, 32)
        Me.chkP0B1.Name = "chkP0B1"
        Me.chkP0B1.Size = New System.Drawing.Size(24, 24)
        Me.chkP0B1.TabIndex = 2
        Me.chkP0B1.Text = " 1"
        '
        'chkP0B2
        '
        Me.chkP0B2.Appearance = System.Windows.Forms.Appearance.Button
        Me.chkP0B2.Location = New System.Drawing.Point(40, 32)
        Me.chkP0B2.Name = "chkP0B2"
        Me.chkP0B2.Size = New System.Drawing.Size(24, 24)
        Me.chkP0B2.TabIndex = 1
        Me.chkP0B2.Text = " 2"
        '
        'chkP0B3
        '
        Me.chkP0B3.Appearance = System.Windows.Forms.Appearance.Button
        Me.chkP0B3.Location = New System.Drawing.Point(16, 32)
        Me.chkP0B3.Name = "chkP0B3"
        Me.chkP0B3.Size = New System.Drawing.Size(24, 24)
        Me.chkP0B3.TabIndex = 0
        Me.chkP0B3.Text = " 3"
        '
        'GroupBox3
        '
        Me.GroupBox3.Controls.AddRange(New System.Windows.Forms.Control() {Me.chkLED2, Me.chkLED1})
        Me.GroupBox3.Location = New System.Drawing.Point(168, 8)
        Me.GroupBox3.Name = "GroupBox3"
        Me.GroupBox3.Size = New System.Drawing.Size(136, 80)
        Me.GroupBox3.TabIndex = 3
        Me.GroupBox3.TabStop = False
        Me.GroupBox3.Text = "LEDs"
        '
        'chkLED2
        '
        Me.chkLED2.Location = New System.Drawing.Point(24, 48)
        Me.chkLED2.Name = "chkLED2"
        Me.chkLED2.Size = New System.Drawing.Size(88, 24)
        Me.chkLED2.TabIndex = 1
        Me.chkLED2.Text = "LED 2"
        '
        'chkLED1
        '
        Me.chkLED1.Location = New System.Drawing.Point(24, 16)
        Me.chkLED1.Name = "chkLED1"
        Me.chkLED1.Size = New System.Drawing.Size(88, 24)
        Me.chkLED1.TabIndex = 0
        Me.chkLED1.Text = "LED 1"
        '
        'GroupBox4
        '
        Me.GroupBox4.Controls.AddRange(New System.Windows.Forms.Control() {Me.chkP1B0, Me.chkP1B1, Me.chkP1B2, Me.chkP1B3})
        Me.GroupBox4.Location = New System.Drawing.Point(168, 96)
        Me.GroupBox4.Name = "GroupBox4"
        Me.GroupBox4.Size = New System.Drawing.Size(136, 80)
        Me.GroupBox4.TabIndex = 4
        Me.GroupBox4.TabStop = False
        Me.GroupBox4.Text = "Port 1"
        '
        'chkP1B0
        '
        Me.chkP1B0.Appearance = System.Windows.Forms.Appearance.Button
        Me.chkP1B0.Location = New System.Drawing.Point(92, 32)
        Me.chkP1B0.Name = "chkP1B0"
        Me.chkP1B0.Size = New System.Drawing.Size(24, 24)
        Me.chkP1B0.TabIndex = 7
        Me.chkP1B0.Text = "0"
        '
        'chkP1B1
        '
        Me.chkP1B1.Appearance = System.Windows.Forms.Appearance.Button
        Me.chkP1B1.Location = New System.Drawing.Point(68, 32)
        Me.chkP1B1.Name = "chkP1B1"
        Me.chkP1B1.Size = New System.Drawing.Size(24, 24)

⌨️ 快捷键说明

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