Option Strict Off
Option Explicit On 
Imports System.Text

Friend Class NETMULTIIO
    Inherits System.Windows.Forms.Form
#Region "Windows Form Designer generated code "
    Public Sub New()
        MyBase.New()
        If m_vb6FormDefInstance Is Nothing Then
            If m_InitializingDefInstance Then
                m_vb6FormDefInstance = Me
            Else
                Try
                    'For the start-up form, the first instance created is the default instance.
                    If System.Reflection.Assembly.GetExecutingAssembly.EntryPoint.DeclaringType Is Me.GetType Then
                        m_vb6FormDefInstance = Me
                    End If
                Catch
                End Try
            End If
        End If
        'This call is required by the Windows Form Designer.
        InitializeComponent()
    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
    Public ToolTip1 As System.Windows.Forms.ToolTip
    Public WithEvents Button_DioExit As System.Windows.Forms.Button
    Public WithEvents Button_Exit As System.Windows.Forms.Button
    Public WithEvents Edit_ReturnCode As System.Windows.Forms.TextBox
    Public WithEvents _Edit_OutBitData_7 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_OutBitData_6 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_OutBitData_5 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_OutBitData_4 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_OutBitData_3 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_OutBitData_2 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_OutBitData_1 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_OutBitData_0 As System.Windows.Forms.TextBox
    Public WithEvents Button_DioOutMultiBit As System.Windows.Forms.Button
    Public WithEvents Label38 As System.Windows.Forms.Label
    Public WithEvents Label36 As System.Windows.Forms.Label
    Public WithEvents Label35 As System.Windows.Forms.Label
    Public WithEvents Label34 As System.Windows.Forms.Label
    Public WithEvents Label33 As System.Windows.Forms.Label
    Public WithEvents Label32 As System.Windows.Forms.Label
    Public WithEvents Label31 As System.Windows.Forms.Label
    Public WithEvents Label30 As System.Windows.Forms.Label
    Public WithEvents Label29 As System.Windows.Forms.Label
    Public WithEvents Frame4 As System.Windows.Forms.GroupBox
    Public WithEvents _Edit_OutPortData_7 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_OutPortData_6 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_OutPortData_5 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_OutPortData_4 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_OutPortData_3 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_OutPortData_2 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_OutPortData_1 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_OutPortData_0 As System.Windows.Forms.TextBox
    Public WithEvents Button_DioOutMultiByte As System.Windows.Forms.Button
    Public WithEvents Label37 As System.Windows.Forms.Label
    Public WithEvents Label28 As System.Windows.Forms.Label
    Public WithEvents Label27 As System.Windows.Forms.Label
    Public WithEvents Label26 As System.Windows.Forms.Label
    Public WithEvents Label25 As System.Windows.Forms.Label
    Public WithEvents Label24 As System.Windows.Forms.Label
    Public WithEvents Label23 As System.Windows.Forms.Label
    Public WithEvents Label22 As System.Windows.Forms.Label
    Public WithEvents Label21 As System.Windows.Forms.Label
    Public WithEvents Frame3 As System.Windows.Forms.GroupBox
    Public WithEvents _Edit_InpBitData_7 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_InpBitData_6 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_InpBitData_5 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_InpBitData_4 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_InpBitData_3 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_InpBitData_2 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_InpBitData_1 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_InpBitData_0 As System.Windows.Forms.TextBox
    Public WithEvents Button_DioInpMultiBit As System.Windows.Forms.Button
    Public WithEvents Label20 As System.Windows.Forms.Label
    Public WithEvents Label19 As System.Windows.Forms.Label
    Public WithEvents Label18 As System.Windows.Forms.Label
    Public WithEvents Label17 As System.Windows.Forms.Label
    Public WithEvents Label16 As System.Windows.Forms.Label
    Public WithEvents Label15 As System.Windows.Forms.Label
    Public WithEvents Label14 As System.Windows.Forms.Label
    Public WithEvents Label13 As System.Windows.Forms.Label
    Public WithEvents Label12 As System.Windows.Forms.Label
    Public WithEvents Frame2 As System.Windows.Forms.GroupBox
    Public WithEvents _Edit_InpPortData_7 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_InpPortData_6 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_InpPortData_5 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_InpPortData_4 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_InpPortData_3 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_InpPortData_2 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_InpPortData_1 As System.Windows.Forms.TextBox
    Public WithEvents _Edit_InpPortData_0 As System.Windows.Forms.TextBox
    Public WithEvents Button_DioInpMultiByte As System.Windows.Forms.Button
    Public WithEvents Label10 As System.Windows.Forms.Label
    Public WithEvents Label9 As System.Windows.Forms.Label
    Public WithEvents Label8 As System.Windows.Forms.Label
    Public WithEvents Label7 As System.Windows.Forms.Label
    Public WithEvents Label6 As System.Windows.Forms.Label
    Public WithEvents Label5 As System.Windows.Forms.Label
    Public WithEvents Label4 As System.Windows.Forms.Label
    Public WithEvents Label3 As System.Windows.Forms.Label
    Public WithEvents Label2 As System.Windows.Forms.Label
    Public WithEvents Frame1 As System.Windows.Forms.GroupBox
    Public WithEvents Button_DioInit As System.Windows.Forms.Button
    Public WithEvents Edit_DeviceName As System.Windows.Forms.TextBox
    Public WithEvents Label11 As System.Windows.Forms.Label
    Public WithEvents Label1 As System.Windows.Forms.Label
    '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
    Public WithEvents Label39 As System.Windows.Forms.Label
    Public WithEvents Edit_DirData As System.Windows.Forms.TextBox
    Public WithEvents Button_DioSetIoDirection 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.Button_DioExit = New System.Windows.Forms.Button()
        Me.Button_Exit = New System.Windows.Forms.Button()
        Me.Edit_ReturnCode = New System.Windows.Forms.TextBox()
        Me.Frame4 = New System.Windows.Forms.GroupBox()
        Me._Edit_OutBitData_7 = New System.Windows.Forms.TextBox()
        Me._Edit_OutBitData_6 = New System.Windows.Forms.TextBox()
        Me._Edit_OutBitData_5 = New System.Windows.Forms.TextBox()
        Me._Edit_OutBitData_4 = New System.Windows.Forms.TextBox()
        Me._Edit_OutBitData_3 = New System.Windows.Forms.TextBox()
        Me._Edit_OutBitData_2 = New System.Windows.Forms.TextBox()
        Me._Edit_OutBitData_1 = New System.Windows.Forms.TextBox()
        Me._Edit_OutBitData_0 = New System.Windows.Forms.TextBox()
        Me.Button_DioOutMultiBit = New System.Windows.Forms.Button()
        Me.Label38 = New System.Windows.Forms.Label()
        Me.Label36 = New System.Windows.Forms.Label()
        Me.Label35 = New System.Windows.Forms.Label()
        Me.Label34 = New System.Windows.Forms.Label()
        Me.Label33 = New System.Windows.Forms.Label()
        Me.Label32 = New System.Windows.Forms.Label()
        Me.Label31 = New System.Windows.Forms.Label()
        Me.Label30 = New System.Windows.Forms.Label()
        Me.Label29 = New System.Windows.Forms.Label()
        Me.Frame3 = New System.Windows.Forms.GroupBox()
        Me._Edit_OutPortData_7 = New System.Windows.Forms.TextBox()
        Me._Edit_OutPortData_6 = New System.Windows.Forms.TextBox()
        Me._Edit_OutPortData_5 = New System.Windows.Forms.TextBox()
        Me._Edit_OutPortData_4 = New System.Windows.Forms.TextBox()
        Me._Edit_OutPortData_3 = New System.Windows.Forms.TextBox()
        Me._Edit_OutPortData_2 = New System.Windows.Forms.TextBox()
        Me._Edit_OutPortData_1 = New System.Windows.Forms.TextBox()
        Me._Edit_OutPortData_0 = New System.Windows.Forms.TextBox()
        Me.Button_DioOutMultiByte = New System.Windows.Forms.Button()
        Me.Label37 = New System.Windows.Forms.Label()
        Me.Label28 = New System.Windows.Forms.Label()
        Me.Label27 = New System.Windows.Forms.Label()
        Me.Label26 = New System.Windows.Forms.Label()
        Me.Label25 = New System.Windows.Forms.Label()
        Me.Label24 = New System.Windows.Forms.Label()
        Me.Label23 = New System.Windows.Forms.Label()
        Me.Label22 = New System.Windows.Forms.Label()
        Me.Label21 = New System.Windows.Forms.Label()
        Me.Frame2 = New System.Windows.Forms.GroupBox()
        Me._Edit_InpBitData_7 = New System.Windows.Forms.TextBox()
        Me._Edit_InpBitData_6 = New System.Windows.Forms.TextBox()
        Me._Edit_InpBitData_5 = New System.Windows.Forms.TextBox()
        Me._Edit_InpBitData_4 = New System.Windows.Forms.TextBox()
        Me._Edit_InpBitData_3 = New System.Windows.Forms.TextBox()
        Me._Edit_InpBitData_2 = New System.Windows.Forms.TextBox()
        Me._Edit_InpBitData_1 = New System.Windows.Forms.TextBox()
        Me._Edit_InpBitData_0 = New System.Windows.Forms.TextBox()
        Me.Button_DioInpMultiBit = New System.Windows.Forms.Button()
        Me.Label20 = New System.Windows.Forms.Label()
        Me.Label19 = New System.Windows.Forms.Label()
        Me.Label18 = New System.Windows.Forms.Label()
        Me.Label17 = New System.Windows.Forms.Label()
        Me.Label16 = New System.Windows.Forms.Label()
        Me.Label15 = New System.Windows.Forms.Label()
        Me.Label14 = New System.Windows.Forms.Label()
        Me.Label13 = New System.Windows.Forms.Label()
        Me.Label12 = New System.Windows.Forms.Label()
        Me.Frame1 = New System.Windows.Forms.GroupBox()
        Me._Edit_InpPortData_7 = New System.Windows.Forms.TextBox()
        Me._Edit_InpPortData_6 = New System.Windows.Forms.TextBox()
        Me._Edit_InpPortData_5 = New System.Windows.Forms.TextBox()
        Me._Edit_InpPortData_4 = New System.Windows.Forms.TextBox()
        Me._Edit_InpPortData_3 = New System.Windows.Forms.TextBox()
        Me._Edit_InpPortData_2 = New System.Windows.Forms.TextBox()
        Me._Edit_InpPortData_1 = New System.Windows.Forms.TextBox()
        Me._Edit_InpPortData_0 = New System.Windows.Forms.TextBox()
        Me.Button_DioInpMultiByte = New System.Windows.Forms.Button()
        Me.Label10 = New System.Windows.Forms.Label()
        Me.Label9 = New System.Windows.Forms.Label()
        Me.Label8 = New System.Windows.Forms.Label()
        Me.Label7 = New System.Windows.Forms.Label()
        Me.Label6 = New System.Windows.Forms.Label()
        Me.Label5 = New System.Windows.Forms.Label()
        Me.Label4 = New System.Windows.Forms.Label()
        Me.Label3 = New System.Windows.Forms.Label()
        Me.Label2 = New System.Windows.Forms.Label()
        Me.Button_DioInit = New System.Windows.Forms.Button()
        Me.Edit_DeviceName = New System.Windows.Forms.TextBox()
        Me.Label11 = New System.Windows.Forms.Label()
        Me.Label1 = New System.Windows.Forms.Label()
        Me.GroupBox1 = New System.Windows.Forms.GroupBox()
        Me.Button_DioSetIoDirection = New System.Windows.Forms.Button()
        Me.Edit_DirData = New System.Windows.Forms.TextBox()
        Me.Label39 = New System.Windows.Forms.Label()
        Me.Frame4.SuspendLayout()
        Me.Frame3.SuspendLayout()
        Me.Frame2.SuspendLayout()
        Me.Frame1.SuspendLayout()
        Me.GroupBox1.SuspendLayout()
        Me.SuspendLayout()
        '
        'Button_DioExit
        '
        Me.Button_DioExit.BackColor = System.Drawing.SystemColors.Control
        Me.Button_DioExit.Cursor = System.Windows.Forms.Cursors.Default
        Me.Button_DioExit.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Button_DioExit.Location = New System.Drawing.Point(336, 408)
        Me.Button_DioExit.Name = "Button_DioExit"
        Me.Button_DioExit.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Button_DioExit.Size = New System.Drawing.Size(105, 25)
        Me.Button_DioExit.TabIndex = 23
        Me.Button_DioExit.Text = "DioExit"
        '
        'Button_Exit
        '
        Me.Button_Exit.BackColor = System.Drawing.SystemColors.Control
        Me.Button_Exit.Cursor = System.Windows.Forms.Cursors.Default
        Me.Button_Exit.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Button_Exit.Location = New System.Drawing.Point(336, 448)
        Me.Button_Exit.Name = "Button_Exit"
        Me.Button_Exit.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Button_Exit.Size = New System.Drawing.Size(105, 25)
        Me.Button_Exit.TabIndex = 22
        Me.Button_Exit.Text = "Exit"
        '
        'Edit_ReturnCode
        '
        Me.Edit_ReturnCode.AcceptsReturn = True
        Me.Edit_ReturnCode.AutoSize = False
        Me.Edit_ReturnCode.BackColor = System.Drawing.SystemColors.Window
        Me.Edit_ReturnCode.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.Edit_ReturnCode.ForeColor = System.Drawing.SystemColors.WindowText
        Me.Edit_ReturnCode.Location = New System.Drawing.Point(104, 416)
        Me.Edit_ReturnCode.MaxLength = 0
        Me.Edit_ReturnCode.Name = "Edit_ReturnCode"
        Me.Edit_ReturnCode.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Edit_ReturnCode.Size = New System.Drawing.Size(217, 18)
        Me.Edit_ReturnCode.TabIndex = 17
        Me.Edit_ReturnCode.Text = "Text6"
        '
        'Frame4
        '
        Me.Frame4.BackColor = System.Drawing.SystemColors.Control
        Me.Frame4.Controls.AddRange(New System.Windows.Forms.Control() {Me._Edit_OutBitData_7, Me._Edit_OutBitData_6, Me._Edit_OutBitData_5, Me._Edit_OutBitData_4, Me._Edit_OutBitData_3, Me._Edit_OutBitData_2, Me._Edit_OutBitData_1, Me._Edit_OutBitData_0, Me.Button_DioOutMultiBit, Me.Label38, Me.Label36, Me.Label35, Me.Label34, Me.Label33, Me.Label32, Me.Label31, Me.Label30, Me.Label29})
        Me.Frame4.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame4.Location = New System.Drawing.Point(16, 336)
        Me.Frame4.Name = "Frame4"
        Me.Frame4.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame4.Size = New System.Drawing.Size(441, 65)
        Me.Frame4.TabIndex = 16
        Me.Frame4.TabStop = False
        Me.Frame4.Text = "MultiBit Output"
        '
        '_Edit_OutBitData_7
        '
        Me._Edit_OutBitData_7.AcceptsReturn = True
        Me._Edit_OutBitData_7.AutoSize = False
        Me._Edit_OutBitData_7.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_OutBitData_7.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_OutBitData_7.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_OutBitData_7.Location = New System.Drawing.Point(288, 32)
        Me._Edit_OutBitData_7.MaxLength = 0
        Me._Edit_OutBitData_7.Name = "_Edit_OutBitData_7"
        Me._Edit_OutBitData_7.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_OutBitData_7.Size = New System.Drawing.Size(20, 18)
        Me._Edit_OutBitData_7.TabIndex = 82
        Me._Edit_OutBitData_7.Text = ""
        '
        '_Edit_OutBitData_6
        '
        Me._Edit_OutBitData_6.AcceptsReturn = True
        Me._Edit_OutBitData_6.AutoSize = False
        Me._Edit_OutBitData_6.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_OutBitData_6.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_OutBitData_6.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_OutBitData_6.Location = New System.Drawing.Point(264, 32)
        Me._Edit_OutBitData_6.MaxLength = 0
        Me._Edit_OutBitData_6.Name = "_Edit_OutBitData_6"
        Me._Edit_OutBitData_6.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_OutBitData_6.Size = New System.Drawing.Size(20, 18)
        Me._Edit_OutBitData_6.TabIndex = 81
        Me._Edit_OutBitData_6.Text = ""
        '
        '_Edit_OutBitData_5
        '
        Me._Edit_OutBitData_5.AcceptsReturn = True
        Me._Edit_OutBitData_5.AutoSize = False
        Me._Edit_OutBitData_5.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_OutBitData_5.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_OutBitData_5.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_OutBitData_5.Location = New System.Drawing.Point(240, 32)
        Me._Edit_OutBitData_5.MaxLength = 0
        Me._Edit_OutBitData_5.Name = "_Edit_OutBitData_5"
        Me._Edit_OutBitData_5.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_OutBitData_5.Size = New System.Drawing.Size(20, 18)
        Me._Edit_OutBitData_5.TabIndex = 80
        Me._Edit_OutBitData_5.Text = ""
        '
        '_Edit_OutBitData_4
        '
        Me._Edit_OutBitData_4.AcceptsReturn = True
        Me._Edit_OutBitData_4.AutoSize = False
        Me._Edit_OutBitData_4.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_OutBitData_4.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_OutBitData_4.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_OutBitData_4.Location = New System.Drawing.Point(216, 32)
        Me._Edit_OutBitData_4.MaxLength = 0
        Me._Edit_OutBitData_4.Name = "_Edit_OutBitData_4"
        Me._Edit_OutBitData_4.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_OutBitData_4.Size = New System.Drawing.Size(20, 18)
        Me._Edit_OutBitData_4.TabIndex = 79
        Me._Edit_OutBitData_4.Text = ""
        '
        '_Edit_OutBitData_3
        '
        Me._Edit_OutBitData_3.AcceptsReturn = True
        Me._Edit_OutBitData_3.AutoSize = False
        Me._Edit_OutBitData_3.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_OutBitData_3.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_OutBitData_3.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_OutBitData_3.Location = New System.Drawing.Point(192, 32)
        Me._Edit_OutBitData_3.MaxLength = 0
        Me._Edit_OutBitData_3.Name = "_Edit_OutBitData_3"
        Me._Edit_OutBitData_3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_OutBitData_3.Size = New System.Drawing.Size(20, 18)
        Me._Edit_OutBitData_3.TabIndex = 78
        Me._Edit_OutBitData_3.Text = ""
        '
        '_Edit_OutBitData_2
        '
        Me._Edit_OutBitData_2.AcceptsReturn = True
        Me._Edit_OutBitData_2.AutoSize = False
        Me._Edit_OutBitData_2.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_OutBitData_2.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_OutBitData_2.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_OutBitData_2.Location = New System.Drawing.Point(168, 32)
        Me._Edit_OutBitData_2.MaxLength = 0
        Me._Edit_OutBitData_2.Name = "_Edit_OutBitData_2"
        Me._Edit_OutBitData_2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_OutBitData_2.Size = New System.Drawing.Size(20, 18)
        Me._Edit_OutBitData_2.TabIndex = 77
        Me._Edit_OutBitData_2.Text = ""
        '
        '_Edit_OutBitData_1
        '
        Me._Edit_OutBitData_1.AcceptsReturn = True
        Me._Edit_OutBitData_1.AutoSize = False
        Me._Edit_OutBitData_1.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_OutBitData_1.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_OutBitData_1.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_OutBitData_1.Location = New System.Drawing.Point(144, 32)
        Me._Edit_OutBitData_1.MaxLength = 0
        Me._Edit_OutBitData_1.Name = "_Edit_OutBitData_1"
        Me._Edit_OutBitData_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_OutBitData_1.Size = New System.Drawing.Size(20, 18)
        Me._Edit_OutBitData_1.TabIndex = 76
        Me._Edit_OutBitData_1.Text = ""
        '
        '_Edit_OutBitData_0
        '
        Me._Edit_OutBitData_0.AcceptsReturn = True
        Me._Edit_OutBitData_0.AutoSize = False
        Me._Edit_OutBitData_0.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_OutBitData_0.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_OutBitData_0.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_OutBitData_0.Location = New System.Drawing.Point(120, 32)
        Me._Edit_OutBitData_0.MaxLength = 0
        Me._Edit_OutBitData_0.Name = "_Edit_OutBitData_0"
        Me._Edit_OutBitData_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_OutBitData_0.Size = New System.Drawing.Size(20, 18)
        Me._Edit_OutBitData_0.TabIndex = 75
        Me._Edit_OutBitData_0.Text = ""
        '
        'Button_DioOutMultiBit
        '
        Me.Button_DioOutMultiBit.BackColor = System.Drawing.SystemColors.Control
        Me.Button_DioOutMultiBit.Cursor = System.Windows.Forms.Cursors.Default
        Me.Button_DioOutMultiBit.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Button_DioOutMultiBit.Location = New System.Drawing.Point(320, 24)
        Me.Button_DioOutMultiBit.Name = "Button_DioOutMultiBit"
        Me.Button_DioOutMultiBit.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Button_DioOutMultiBit.Size = New System.Drawing.Size(105, 25)
        Me.Button_DioOutMultiBit.TabIndex = 21
        Me.Button_DioOutMultiBit.Text = "DioOutMultiBit"
        '
        'Label38
        '
        Me.Label38.BackColor = System.Drawing.SystemColors.Control
        Me.Label38.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label38.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label38.Location = New System.Drawing.Point(32, 32)
        Me.Label38.Name = "Label38"
        Me.Label38.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label38.Size = New System.Drawing.Size(81, 17)
        Me.Label38.TabIndex = 50
        Me.Label38.Text = "Bit Data:"
        '
        'Label36
        '
        Me.Label36.BackColor = System.Drawing.SystemColors.Control
        Me.Label36.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label36.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label36.Location = New System.Drawing.Point(296, 16)
        Me.Label36.Name = "Label36"
        Me.Label36.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label36.Size = New System.Drawing.Size(17, 25)
        Me.Label36.TabIndex = 48
        Me.Label36.Text = "7"
        '
        'Label35
        '
        Me.Label35.BackColor = System.Drawing.SystemColors.Control
        Me.Label35.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label35.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label35.Location = New System.Drawing.Point(272, 16)
        Me.Label35.Name = "Label35"
        Me.Label35.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label35.Size = New System.Drawing.Size(17, 17)
        Me.Label35.TabIndex = 47
        Me.Label35.Text = "6"
        '
        'Label34
        '
        Me.Label34.BackColor = System.Drawing.SystemColors.Control
        Me.Label34.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label34.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label34.Location = New System.Drawing.Point(248, 16)
        Me.Label34.Name = "Label34"
        Me.Label34.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label34.Size = New System.Drawing.Size(9, 17)
        Me.Label34.TabIndex = 46
        Me.Label34.Text = "5"
        '
        'Label33
        '
        Me.Label33.BackColor = System.Drawing.SystemColors.Control
        Me.Label33.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label33.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label33.Location = New System.Drawing.Point(224, 16)
        Me.Label33.Name = "Label33"
        Me.Label33.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label33.Size = New System.Drawing.Size(25, 17)
        Me.Label33.TabIndex = 45
        Me.Label33.Text = "4"
        '
        'Label32
        '
        Me.Label32.BackColor = System.Drawing.SystemColors.Control
        Me.Label32.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label32.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label32.Location = New System.Drawing.Point(200, 16)
        Me.Label32.Name = "Label32"
        Me.Label32.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label32.Size = New System.Drawing.Size(17, 17)
        Me.Label32.TabIndex = 44
        Me.Label32.Text = "3"
        '
        'Label31
        '
        Me.Label31.BackColor = System.Drawing.SystemColors.Control
        Me.Label31.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label31.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label31.Location = New System.Drawing.Point(176, 16)
        Me.Label31.Name = "Label31"
        Me.Label31.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label31.Size = New System.Drawing.Size(17, 17)
        Me.Label31.TabIndex = 43
        Me.Label31.Text = "2"
        '
        'Label30
        '
        Me.Label30.BackColor = System.Drawing.SystemColors.Control
        Me.Label30.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label30.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label30.Location = New System.Drawing.Point(152, 16)
        Me.Label30.Name = "Label30"
        Me.Label30.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label30.Size = New System.Drawing.Size(17, 17)
        Me.Label30.TabIndex = 42
        Me.Label30.Text = "1"
        '
        'Label29
        '
        Me.Label29.BackColor = System.Drawing.SystemColors.Control
        Me.Label29.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label29.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label29.Location = New System.Drawing.Point(128, 16)
        Me.Label29.Name = "Label29"
        Me.Label29.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label29.Size = New System.Drawing.Size(9, 17)
        Me.Label29.TabIndex = 41
        Me.Label29.Text = "0"
        '
        'Frame3
        '
        Me.Frame3.BackColor = System.Drawing.SystemColors.Control
        Me.Frame3.Controls.AddRange(New System.Windows.Forms.Control() {Me._Edit_OutPortData_7, Me._Edit_OutPortData_6, Me._Edit_OutPortData_5, Me._Edit_OutPortData_4, Me._Edit_OutPortData_3, Me._Edit_OutPortData_2, Me._Edit_OutPortData_1, Me._Edit_OutPortData_0, Me.Button_DioOutMultiByte, Me.Label37, Me.Label28, Me.Label27, Me.Label26, Me.Label25, Me.Label24, Me.Label23, Me.Label22, Me.Label21})
        Me.Frame3.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame3.Location = New System.Drawing.Point(16, 264)
        Me.Frame3.Name = "Frame3"
        Me.Frame3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame3.Size = New System.Drawing.Size(441, 65)
        Me.Frame3.TabIndex = 5
        Me.Frame3.TabStop = False
        Me.Frame3.Text = "MultiPort Output"
        '
        '_Edit_OutPortData_7
        '
        Me._Edit_OutPortData_7.AcceptsReturn = True
        Me._Edit_OutPortData_7.AutoSize = False
        Me._Edit_OutPortData_7.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_OutPortData_7.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_OutPortData_7.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_OutPortData_7.Location = New System.Drawing.Point(288, 32)
        Me._Edit_OutPortData_7.MaxLength = 0
        Me._Edit_OutPortData_7.Name = "_Edit_OutPortData_7"
        Me._Edit_OutPortData_7.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_OutPortData_7.Size = New System.Drawing.Size(20, 18)
        Me._Edit_OutPortData_7.TabIndex = 74
        Me._Edit_OutPortData_7.Text = ""
        '
        '_Edit_OutPortData_6
        '
        Me._Edit_OutPortData_6.AcceptsReturn = True
        Me._Edit_OutPortData_6.AutoSize = False
        Me._Edit_OutPortData_6.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_OutPortData_6.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_OutPortData_6.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_OutPortData_6.Location = New System.Drawing.Point(264, 32)
        Me._Edit_OutPortData_6.MaxLength = 0
        Me._Edit_OutPortData_6.Name = "_Edit_OutPortData_6"
        Me._Edit_OutPortData_6.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_OutPortData_6.Size = New System.Drawing.Size(20, 18)
        Me._Edit_OutPortData_6.TabIndex = 73
        Me._Edit_OutPortData_6.Text = ""
        '
        '_Edit_OutPortData_5
        '
        Me._Edit_OutPortData_5.AcceptsReturn = True
        Me._Edit_OutPortData_5.AutoSize = False
        Me._Edit_OutPortData_5.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_OutPortData_5.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_OutPortData_5.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_OutPortData_5.Location = New System.Drawing.Point(240, 32)
        Me._Edit_OutPortData_5.MaxLength = 0
        Me._Edit_OutPortData_5.Name = "_Edit_OutPortData_5"
        Me._Edit_OutPortData_5.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_OutPortData_5.Size = New System.Drawing.Size(20, 18)
        Me._Edit_OutPortData_5.TabIndex = 72
        Me._Edit_OutPortData_5.Text = ""
        '
        '_Edit_OutPortData_4
        '
        Me._Edit_OutPortData_4.AcceptsReturn = True
        Me._Edit_OutPortData_4.AutoSize = False
        Me._Edit_OutPortData_4.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_OutPortData_4.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_OutPortData_4.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_OutPortData_4.Location = New System.Drawing.Point(216, 32)
        Me._Edit_OutPortData_4.MaxLength = 0
        Me._Edit_OutPortData_4.Name = "_Edit_OutPortData_4"
        Me._Edit_OutPortData_4.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_OutPortData_4.Size = New System.Drawing.Size(20, 18)
        Me._Edit_OutPortData_4.TabIndex = 71
        Me._Edit_OutPortData_4.Text = ""
        '
        '_Edit_OutPortData_3
        '
        Me._Edit_OutPortData_3.AcceptsReturn = True
        Me._Edit_OutPortData_3.AutoSize = False
        Me._Edit_OutPortData_3.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_OutPortData_3.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_OutPortData_3.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_OutPortData_3.Location = New System.Drawing.Point(192, 32)
        Me._Edit_OutPortData_3.MaxLength = 0
        Me._Edit_OutPortData_3.Name = "_Edit_OutPortData_3"
        Me._Edit_OutPortData_3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_OutPortData_3.Size = New System.Drawing.Size(20, 18)
        Me._Edit_OutPortData_3.TabIndex = 70
        Me._Edit_OutPortData_3.Text = ""
        '
        '_Edit_OutPortData_2
        '
        Me._Edit_OutPortData_2.AcceptsReturn = True
        Me._Edit_OutPortData_2.AutoSize = False
        Me._Edit_OutPortData_2.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_OutPortData_2.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_OutPortData_2.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_OutPortData_2.Location = New System.Drawing.Point(168, 32)
        Me._Edit_OutPortData_2.MaxLength = 0
        Me._Edit_OutPortData_2.Name = "_Edit_OutPortData_2"
        Me._Edit_OutPortData_2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_OutPortData_2.Size = New System.Drawing.Size(20, 18)
        Me._Edit_OutPortData_2.TabIndex = 69
        Me._Edit_OutPortData_2.Text = ""
        '
        '_Edit_OutPortData_1
        '
        Me._Edit_OutPortData_1.AcceptsReturn = True
        Me._Edit_OutPortData_1.AutoSize = False
        Me._Edit_OutPortData_1.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_OutPortData_1.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_OutPortData_1.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_OutPortData_1.Location = New System.Drawing.Point(144, 32)
        Me._Edit_OutPortData_1.MaxLength = 0
        Me._Edit_OutPortData_1.Name = "_Edit_OutPortData_1"
        Me._Edit_OutPortData_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_OutPortData_1.Size = New System.Drawing.Size(20, 18)
        Me._Edit_OutPortData_1.TabIndex = 68
        Me._Edit_OutPortData_1.Text = ""
        '
        '_Edit_OutPortData_0
        '
        Me._Edit_OutPortData_0.AcceptsReturn = True
        Me._Edit_OutPortData_0.AutoSize = False
        Me._Edit_OutPortData_0.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_OutPortData_0.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_OutPortData_0.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_OutPortData_0.Location = New System.Drawing.Point(120, 32)
        Me._Edit_OutPortData_0.MaxLength = 0
        Me._Edit_OutPortData_0.Name = "_Edit_OutPortData_0"
        Me._Edit_OutPortData_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_OutPortData_0.Size = New System.Drawing.Size(20, 18)
        Me._Edit_OutPortData_0.TabIndex = 67
        Me._Edit_OutPortData_0.Text = ""
        '
        'Button_DioOutMultiByte
        '
        Me.Button_DioOutMultiByte.BackColor = System.Drawing.SystemColors.Control
        Me.Button_DioOutMultiByte.Cursor = System.Windows.Forms.Cursors.Default
        Me.Button_DioOutMultiByte.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Button_DioOutMultiByte.Location = New System.Drawing.Point(320, 24)
        Me.Button_DioOutMultiByte.Name = "Button_DioOutMultiByte"
        Me.Button_DioOutMultiByte.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Button_DioOutMultiByte.Size = New System.Drawing.Size(105, 25)
        Me.Button_DioOutMultiByte.TabIndex = 20
        Me.Button_DioOutMultiByte.Text = "DioOutMultiByte"
        '
        'Label37
        '
        Me.Label37.BackColor = System.Drawing.SystemColors.Control
        Me.Label37.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label37.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label37.Location = New System.Drawing.Point(32, 32)
        Me.Label37.Name = "Label37"
        Me.Label37.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label37.Size = New System.Drawing.Size(81, 17)
        Me.Label37.TabIndex = 49
        Me.Label37.Text = "Port Data:"
        '
        'Label28
        '
        Me.Label28.BackColor = System.Drawing.SystemColors.Control
        Me.Label28.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label28.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label28.Location = New System.Drawing.Point(296, 16)
        Me.Label28.Name = "Label28"
        Me.Label28.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label28.Size = New System.Drawing.Size(9, 17)
        Me.Label28.TabIndex = 40
        Me.Label28.Text = "7"
        '
        'Label27
        '
        Me.Label27.BackColor = System.Drawing.SystemColors.Control
        Me.Label27.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label27.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label27.Location = New System.Drawing.Point(272, 16)
        Me.Label27.Name = "Label27"
        Me.Label27.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label27.Size = New System.Drawing.Size(9, 17)
        Me.Label27.TabIndex = 39
        Me.Label27.Text = "6"
        '
        'Label26
        '
        Me.Label26.BackColor = System.Drawing.SystemColors.Control
        Me.Label26.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label26.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label26.Location = New System.Drawing.Point(248, 16)
        Me.Label26.Name = "Label26"
        Me.Label26.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label26.Size = New System.Drawing.Size(17, 17)
        Me.Label26.TabIndex = 38
        Me.Label26.Text = "5"
        '
        'Label25
        '
        Me.Label25.BackColor = System.Drawing.SystemColors.Control
        Me.Label25.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label25.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label25.Location = New System.Drawing.Point(224, 16)
        Me.Label25.Name = "Label25"
        Me.Label25.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label25.Size = New System.Drawing.Size(17, 17)
        Me.Label25.TabIndex = 37
        Me.Label25.Text = "4"
        '
        'Label24
        '
        Me.Label24.BackColor = System.Drawing.SystemColors.Control
        Me.Label24.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label24.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label24.Location = New System.Drawing.Point(200, 16)
        Me.Label24.Name = "Label24"
        Me.Label24.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label24.Size = New System.Drawing.Size(9, 17)
        Me.Label24.TabIndex = 36
        Me.Label24.Text = "3"
        '
        'Label23
        '
        Me.Label23.BackColor = System.Drawing.SystemColors.Control
        Me.Label23.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label23.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label23.Location = New System.Drawing.Point(176, 16)
        Me.Label23.Name = "Label23"
        Me.Label23.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label23.Size = New System.Drawing.Size(17, 17)
        Me.Label23.TabIndex = 35
        Me.Label23.Text = "2"
        '
        'Label22
        '
        Me.Label22.BackColor = System.Drawing.SystemColors.Control
        Me.Label22.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label22.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label22.Location = New System.Drawing.Point(152, 16)
        Me.Label22.Name = "Label22"
        Me.Label22.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label22.Size = New System.Drawing.Size(17, 17)
        Me.Label22.TabIndex = 34
        Me.Label22.Text = "1"
        '
        'Label21
        '
        Me.Label21.BackColor = System.Drawing.SystemColors.Control
        Me.Label21.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label21.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label21.Location = New System.Drawing.Point(128, 16)
        Me.Label21.Name = "Label21"
        Me.Label21.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label21.Size = New System.Drawing.Size(17, 17)
        Me.Label21.TabIndex = 33
        Me.Label21.Text = "0"
        '
        'Frame2
        '
        Me.Frame2.BackColor = System.Drawing.SystemColors.Control
        Me.Frame2.Controls.AddRange(New System.Windows.Forms.Control() {Me._Edit_InpBitData_7, Me._Edit_InpBitData_6, Me._Edit_InpBitData_5, Me._Edit_InpBitData_4, Me._Edit_InpBitData_3, Me._Edit_InpBitData_2, Me._Edit_InpBitData_1, Me._Edit_InpBitData_0, Me.Button_DioInpMultiBit, Me.Label20, Me.Label19, Me.Label18, Me.Label17, Me.Label16, Me.Label15, Me.Label14, Me.Label13, Me.Label12})
        Me.Frame2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame2.Location = New System.Drawing.Point(16, 192)
        Me.Frame2.Name = "Frame2"
        Me.Frame2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame2.Size = New System.Drawing.Size(441, 65)
        Me.Frame2.TabIndex = 4
        Me.Frame2.TabStop = False
        Me.Frame2.Text = "MultiBit Input"
        '
        '_Edit_InpBitData_7
        '
        Me._Edit_InpBitData_7.AcceptsReturn = True
        Me._Edit_InpBitData_7.AutoSize = False
        Me._Edit_InpBitData_7.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_InpBitData_7.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_InpBitData_7.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_InpBitData_7.Location = New System.Drawing.Point(288, 32)
        Me._Edit_InpBitData_7.MaxLength = 0
        Me._Edit_InpBitData_7.Name = "_Edit_InpBitData_7"
        Me._Edit_InpBitData_7.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_InpBitData_7.Size = New System.Drawing.Size(20, 18)
        Me._Edit_InpBitData_7.TabIndex = 66
        Me._Edit_InpBitData_7.Text = ""
        '
        '_Edit_InpBitData_6
        '
        Me._Edit_InpBitData_6.AcceptsReturn = True
        Me._Edit_InpBitData_6.AutoSize = False
        Me._Edit_InpBitData_6.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_InpBitData_6.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_InpBitData_6.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_InpBitData_6.Location = New System.Drawing.Point(264, 32)
        Me._Edit_InpBitData_6.MaxLength = 0
        Me._Edit_InpBitData_6.Name = "_Edit_InpBitData_6"
        Me._Edit_InpBitData_6.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_InpBitData_6.Size = New System.Drawing.Size(20, 18)
        Me._Edit_InpBitData_6.TabIndex = 65
        Me._Edit_InpBitData_6.Text = ""
        '
        '_Edit_InpBitData_5
        '
        Me._Edit_InpBitData_5.AcceptsReturn = True
        Me._Edit_InpBitData_5.AutoSize = False
        Me._Edit_InpBitData_5.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_InpBitData_5.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_InpBitData_5.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_InpBitData_5.Location = New System.Drawing.Point(240, 32)
        Me._Edit_InpBitData_5.MaxLength = 0
        Me._Edit_InpBitData_5.Name = "_Edit_InpBitData_5"
        Me._Edit_InpBitData_5.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_InpBitData_5.Size = New System.Drawing.Size(20, 18)
        Me._Edit_InpBitData_5.TabIndex = 64
        Me._Edit_InpBitData_5.Text = ""
        '
        '_Edit_InpBitData_4
        '
        Me._Edit_InpBitData_4.AcceptsReturn = True
        Me._Edit_InpBitData_4.AutoSize = False
        Me._Edit_InpBitData_4.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_InpBitData_4.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_InpBitData_4.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_InpBitData_4.Location = New System.Drawing.Point(216, 32)
        Me._Edit_InpBitData_4.MaxLength = 0
        Me._Edit_InpBitData_4.Name = "_Edit_InpBitData_4"
        Me._Edit_InpBitData_4.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_InpBitData_4.Size = New System.Drawing.Size(20, 18)
        Me._Edit_InpBitData_4.TabIndex = 63
        Me._Edit_InpBitData_4.Text = ""
        '
        '_Edit_InpBitData_3
        '
        Me._Edit_InpBitData_3.AcceptsReturn = True
        Me._Edit_InpBitData_3.AutoSize = False
        Me._Edit_InpBitData_3.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_InpBitData_3.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_InpBitData_3.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_InpBitData_3.Location = New System.Drawing.Point(192, 32)
        Me._Edit_InpBitData_3.MaxLength = 0
        Me._Edit_InpBitData_3.Name = "_Edit_InpBitData_3"
        Me._Edit_InpBitData_3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_InpBitData_3.Size = New System.Drawing.Size(20, 18)
        Me._Edit_InpBitData_3.TabIndex = 62
        Me._Edit_InpBitData_3.Text = ""
        '
        '_Edit_InpBitData_2
        '
        Me._Edit_InpBitData_2.AcceptsReturn = True
        Me._Edit_InpBitData_2.AutoSize = False
        Me._Edit_InpBitData_2.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_InpBitData_2.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_InpBitData_2.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_InpBitData_2.Location = New System.Drawing.Point(168, 32)
        Me._Edit_InpBitData_2.MaxLength = 0
        Me._Edit_InpBitData_2.Name = "_Edit_InpBitData_2"
        Me._Edit_InpBitData_2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_InpBitData_2.Size = New System.Drawing.Size(20, 18)
        Me._Edit_InpBitData_2.TabIndex = 61
        Me._Edit_InpBitData_2.Text = ""
        '
        '_Edit_InpBitData_1
        '
        Me._Edit_InpBitData_1.AcceptsReturn = True
        Me._Edit_InpBitData_1.AutoSize = False
        Me._Edit_InpBitData_1.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_InpBitData_1.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_InpBitData_1.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_InpBitData_1.Location = New System.Drawing.Point(144, 32)
        Me._Edit_InpBitData_1.MaxLength = 0
        Me._Edit_InpBitData_1.Name = "_Edit_InpBitData_1"
        Me._Edit_InpBitData_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_InpBitData_1.Size = New System.Drawing.Size(20, 18)
        Me._Edit_InpBitData_1.TabIndex = 60
        Me._Edit_InpBitData_1.Text = ""
        '
        '_Edit_InpBitData_0
        '
        Me._Edit_InpBitData_0.AcceptsReturn = True
        Me._Edit_InpBitData_0.AutoSize = False
        Me._Edit_InpBitData_0.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_InpBitData_0.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_InpBitData_0.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_InpBitData_0.Location = New System.Drawing.Point(120, 32)
        Me._Edit_InpBitData_0.MaxLength = 0
        Me._Edit_InpBitData_0.Name = "_Edit_InpBitData_0"
        Me._Edit_InpBitData_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_InpBitData_0.Size = New System.Drawing.Size(20, 18)
        Me._Edit_InpBitData_0.TabIndex = 52
        Me._Edit_InpBitData_0.Text = ""
        '
        'Button_DioInpMultiBit
        '
        Me.Button_DioInpMultiBit.BackColor = System.Drawing.SystemColors.Control
        Me.Button_DioInpMultiBit.Cursor = System.Windows.Forms.Cursors.Default
        Me.Button_DioInpMultiBit.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Button_DioInpMultiBit.Location = New System.Drawing.Point(320, 24)
        Me.Button_DioInpMultiBit.Name = "Button_DioInpMultiBit"
        Me.Button_DioInpMultiBit.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Button_DioInpMultiBit.Size = New System.Drawing.Size(105, 25)
        Me.Button_DioInpMultiBit.TabIndex = 19
        Me.Button_DioInpMultiBit.Text = "DioInpMultiBit"
        '
        'Label20
        '
        Me.Label20.BackColor = System.Drawing.SystemColors.Control
        Me.Label20.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label20.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label20.Location = New System.Drawing.Point(128, 16)
        Me.Label20.Name = "Label20"
        Me.Label20.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label20.Size = New System.Drawing.Size(17, 17)
        Me.Label20.TabIndex = 32
        Me.Label20.Text = "0"
        '
        'Label19
        '
        Me.Label19.BackColor = System.Drawing.SystemColors.Control
        Me.Label19.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label19.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label19.Location = New System.Drawing.Point(152, 16)
        Me.Label19.Name = "Label19"
        Me.Label19.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label19.Size = New System.Drawing.Size(17, 17)
        Me.Label19.TabIndex = 31
        Me.Label19.Text = "1"
        '
        'Label18
        '
        Me.Label18.BackColor = System.Drawing.SystemColors.Control
        Me.Label18.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label18.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label18.Location = New System.Drawing.Point(176, 16)
        Me.Label18.Name = "Label18"
        Me.Label18.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label18.Size = New System.Drawing.Size(17, 17)
        Me.Label18.TabIndex = 30
        Me.Label18.Text = "2"
        '
        'Label17
        '
        Me.Label17.BackColor = System.Drawing.SystemColors.Control
        Me.Label17.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label17.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label17.Location = New System.Drawing.Point(200, 16)
        Me.Label17.Name = "Label17"
        Me.Label17.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label17.Size = New System.Drawing.Size(9, 17)
        Me.Label17.TabIndex = 29
        Me.Label17.Text = "3"
        '
        'Label16
        '
        Me.Label16.BackColor = System.Drawing.SystemColors.Control
        Me.Label16.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label16.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label16.Location = New System.Drawing.Point(224, 16)
        Me.Label16.Name = "Label16"
        Me.Label16.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label16.Size = New System.Drawing.Size(17, 17)
        Me.Label16.TabIndex = 28
        Me.Label16.Text = "4"
        '
        'Label15
        '
        Me.Label15.BackColor = System.Drawing.SystemColors.Control
        Me.Label15.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label15.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label15.Location = New System.Drawing.Point(248, 16)
        Me.Label15.Name = "Label15"
        Me.Label15.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label15.Size = New System.Drawing.Size(17, 17)
        Me.Label15.TabIndex = 27
        Me.Label15.Text = "5"
        '
        'Label14
        '
        Me.Label14.BackColor = System.Drawing.SystemColors.Control
        Me.Label14.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label14.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label14.Location = New System.Drawing.Point(272, 16)
        Me.Label14.Name = "Label14"
        Me.Label14.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label14.Size = New System.Drawing.Size(17, 17)
        Me.Label14.TabIndex = 26
        Me.Label14.Text = "6"
        '
        'Label13
        '
        Me.Label13.BackColor = System.Drawing.SystemColors.Control
        Me.Label13.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label13.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label13.Location = New System.Drawing.Point(296, 16)
        Me.Label13.Name = "Label13"
        Me.Label13.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label13.Size = New System.Drawing.Size(9, 17)
        Me.Label13.TabIndex = 25
        Me.Label13.Text = "7"
        '
        'Label12
        '
        Me.Label12.BackColor = System.Drawing.SystemColors.Control
        Me.Label12.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label12.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label12.Location = New System.Drawing.Point(32, 32)
        Me.Label12.Name = "Label12"
        Me.Label12.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label12.Size = New System.Drawing.Size(81, 17)
        Me.Label12.TabIndex = 24
        Me.Label12.Text = "Bit Data:"
        '
        'Frame1
        '
        Me.Frame1.BackColor = System.Drawing.SystemColors.Control
        Me.Frame1.Controls.AddRange(New System.Windows.Forms.Control() {Me._Edit_InpPortData_7, Me._Edit_InpPortData_6, Me._Edit_InpPortData_5, Me._Edit_InpPortData_4, Me._Edit_InpPortData_3, Me._Edit_InpPortData_2, Me._Edit_InpPortData_1, Me._Edit_InpPortData_0, Me.Button_DioInpMultiByte, Me.Label10, Me.Label9, Me.Label8, Me.Label7, Me.Label6, Me.Label5, Me.Label4, Me.Label3, Me.Label2})
        Me.Frame1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame1.Location = New System.Drawing.Point(16, 120)
        Me.Frame1.Name = "Frame1"
        Me.Frame1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame1.Size = New System.Drawing.Size(441, 65)
        Me.Frame1.TabIndex = 3
        Me.Frame1.TabStop = False
        Me.Frame1.Text = "MultiPort Input"
        '
        '_Edit_InpPortData_7
        '
        Me._Edit_InpPortData_7.AcceptsReturn = True
        Me._Edit_InpPortData_7.AutoSize = False
        Me._Edit_InpPortData_7.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_InpPortData_7.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_InpPortData_7.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_InpPortData_7.Location = New System.Drawing.Point(288, 32)
        Me._Edit_InpPortData_7.MaxLength = 0
        Me._Edit_InpPortData_7.Name = "_Edit_InpPortData_7"
        Me._Edit_InpPortData_7.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_InpPortData_7.Size = New System.Drawing.Size(20, 18)
        Me._Edit_InpPortData_7.TabIndex = 59
        Me._Edit_InpPortData_7.Text = ""
        '
        '_Edit_InpPortData_6
        '
        Me._Edit_InpPortData_6.AcceptsReturn = True
        Me._Edit_InpPortData_6.AutoSize = False
        Me._Edit_InpPortData_6.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_InpPortData_6.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_InpPortData_6.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_InpPortData_6.Location = New System.Drawing.Point(264, 32)
        Me._Edit_InpPortData_6.MaxLength = 0
        Me._Edit_InpPortData_6.Name = "_Edit_InpPortData_6"
        Me._Edit_InpPortData_6.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_InpPortData_6.Size = New System.Drawing.Size(20, 18)
        Me._Edit_InpPortData_6.TabIndex = 58
        Me._Edit_InpPortData_6.Text = ""
        '
        '_Edit_InpPortData_5
        '
        Me._Edit_InpPortData_5.AcceptsReturn = True
        Me._Edit_InpPortData_5.AutoSize = False
        Me._Edit_InpPortData_5.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_InpPortData_5.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_InpPortData_5.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_InpPortData_5.Location = New System.Drawing.Point(240, 32)
        Me._Edit_InpPortData_5.MaxLength = 0
        Me._Edit_InpPortData_5.Name = "_Edit_InpPortData_5"
        Me._Edit_InpPortData_5.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_InpPortData_5.Size = New System.Drawing.Size(20, 18)
        Me._Edit_InpPortData_5.TabIndex = 57
        Me._Edit_InpPortData_5.Text = ""
        '
        '_Edit_InpPortData_4
        '
        Me._Edit_InpPortData_4.AcceptsReturn = True
        Me._Edit_InpPortData_4.AutoSize = False
        Me._Edit_InpPortData_4.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_InpPortData_4.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_InpPortData_4.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_InpPortData_4.Location = New System.Drawing.Point(216, 32)
        Me._Edit_InpPortData_4.MaxLength = 0
        Me._Edit_InpPortData_4.Name = "_Edit_InpPortData_4"
        Me._Edit_InpPortData_4.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_InpPortData_4.Size = New System.Drawing.Size(20, 18)
        Me._Edit_InpPortData_4.TabIndex = 56
        Me._Edit_InpPortData_4.Text = ""
        '
        '_Edit_InpPortData_3
        '
        Me._Edit_InpPortData_3.AcceptsReturn = True
        Me._Edit_InpPortData_3.AutoSize = False
        Me._Edit_InpPortData_3.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_InpPortData_3.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_InpPortData_3.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_InpPortData_3.Location = New System.Drawing.Point(192, 32)
        Me._Edit_InpPortData_3.MaxLength = 0
        Me._Edit_InpPortData_3.Name = "_Edit_InpPortData_3"
        Me._Edit_InpPortData_3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_InpPortData_3.Size = New System.Drawing.Size(20, 18)
        Me._Edit_InpPortData_3.TabIndex = 55
        Me._Edit_InpPortData_3.Text = ""
        '
        '_Edit_InpPortData_2
        '
        Me._Edit_InpPortData_2.AcceptsReturn = True
        Me._Edit_InpPortData_2.AutoSize = False
        Me._Edit_InpPortData_2.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_InpPortData_2.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_InpPortData_2.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_InpPortData_2.Location = New System.Drawing.Point(168, 32)
        Me._Edit_InpPortData_2.MaxLength = 0
        Me._Edit_InpPortData_2.Name = "_Edit_InpPortData_2"
        Me._Edit_InpPortData_2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_InpPortData_2.Size = New System.Drawing.Size(20, 18)
        Me._Edit_InpPortData_2.TabIndex = 54
        Me._Edit_InpPortData_2.Text = ""
        '
        '_Edit_InpPortData_1
        '
        Me._Edit_InpPortData_1.AcceptsReturn = True
        Me._Edit_InpPortData_1.AutoSize = False
        Me._Edit_InpPortData_1.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_InpPortData_1.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_InpPortData_1.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_InpPortData_1.Location = New System.Drawing.Point(144, 32)
        Me._Edit_InpPortData_1.MaxLength = 0
        Me._Edit_InpPortData_1.Name = "_Edit_InpPortData_1"
        Me._Edit_InpPortData_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_InpPortData_1.Size = New System.Drawing.Size(20, 18)
        Me._Edit_InpPortData_1.TabIndex = 53
        Me._Edit_InpPortData_1.Text = ""
        '
        '_Edit_InpPortData_0
        '
        Me._Edit_InpPortData_0.AcceptsReturn = True
        Me._Edit_InpPortData_0.AutoSize = False
        Me._Edit_InpPortData_0.BackColor = System.Drawing.SystemColors.Window
        Me._Edit_InpPortData_0.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Edit_InpPortData_0.ForeColor = System.Drawing.SystemColors.WindowText
        Me._Edit_InpPortData_0.Location = New System.Drawing.Point(120, 32)
        Me._Edit_InpPortData_0.MaxLength = 0
        Me._Edit_InpPortData_0.Name = "_Edit_InpPortData_0"
        Me._Edit_InpPortData_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Edit_InpPortData_0.Size = New System.Drawing.Size(20, 18)
        Me._Edit_InpPortData_0.TabIndex = 51
        Me._Edit_InpPortData_0.Text = ""
        '
        'Button_DioInpMultiByte
        '
        Me.Button_DioInpMultiByte.BackColor = System.Drawing.SystemColors.Control
        Me.Button_DioInpMultiByte.Cursor = System.Windows.Forms.Cursors.Default
        Me.Button_DioInpMultiByte.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Button_DioInpMultiByte.Location = New System.Drawing.Point(320, 24)
        Me.Button_DioInpMultiByte.Name = "Button_DioInpMultiByte"
        Me.Button_DioInpMultiByte.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Button_DioInpMultiByte.Size = New System.Drawing.Size(105, 25)
        Me.Button_DioInpMultiByte.TabIndex = 6
        Me.Button_DioInpMultiByte.Text = "DioInpMultiByte"
        '
        'Label10
        '
        Me.Label10.BackColor = System.Drawing.SystemColors.Control
        Me.Label10.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label10.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label10.Location = New System.Drawing.Point(296, 16)
        Me.Label10.Name = "Label10"
        Me.Label10.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label10.Size = New System.Drawing.Size(9, 17)
        Me.Label10.TabIndex = 15
        Me.Label10.Text = "7"
        '
        'Label9
        '
        Me.Label9.BackColor = System.Drawing.SystemColors.Control
        Me.Label9.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label9.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label9.Location = New System.Drawing.Point(272, 16)
        Me.Label9.Name = "Label9"
        Me.Label9.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label9.Size = New System.Drawing.Size(17, 17)
        Me.Label9.TabIndex = 14
        Me.Label9.Text = "6"
        '
        'Label8
        '
        Me.Label8.BackColor = System.Drawing.SystemColors.Control
        Me.Label8.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label8.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label8.Location = New System.Drawing.Point(248, 16)
        Me.Label8.Name = "Label8"
        Me.Label8.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label8.Size = New System.Drawing.Size(17, 17)
        Me.Label8.TabIndex = 13
        Me.Label8.Text = "5"
        '
        'Label7
        '
        Me.Label7.BackColor = System.Drawing.SystemColors.Control
        Me.Label7.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label7.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label7.Location = New System.Drawing.Point(224, 16)
        Me.Label7.Name = "Label7"
        Me.Label7.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label7.Size = New System.Drawing.Size(17, 17)
        Me.Label7.TabIndex = 12
        Me.Label7.Text = "4"
        '
        'Label6
        '
        Me.Label6.BackColor = System.Drawing.SystemColors.Control
        Me.Label6.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label6.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label6.Location = New System.Drawing.Point(200, 16)
        Me.Label6.Name = "Label6"
        Me.Label6.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label6.Size = New System.Drawing.Size(9, 17)
        Me.Label6.TabIndex = 11
        Me.Label6.Text = "3"
        '
        'Label5
        '
        Me.Label5.BackColor = System.Drawing.SystemColors.Control
        Me.Label5.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label5.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label5.Location = New System.Drawing.Point(176, 16)
        Me.Label5.Name = "Label5"
        Me.Label5.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label5.Size = New System.Drawing.Size(17, 17)
        Me.Label5.TabIndex = 10
        Me.Label5.Text = "2"
        '
        'Label4
        '
        Me.Label4.BackColor = System.Drawing.SystemColors.Control
        Me.Label4.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label4.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label4.Location = New System.Drawing.Point(152, 16)
        Me.Label4.Name = "Label4"
        Me.Label4.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label4.Size = New System.Drawing.Size(9, 17)
        Me.Label4.TabIndex = 9
        Me.Label4.Text = "1"
        '
        'Label3
        '
        Me.Label3.BackColor = System.Drawing.SystemColors.Control
        Me.Label3.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label3.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label3.Location = New System.Drawing.Point(128, 16)
        Me.Label3.Name = "Label3"
        Me.Label3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label3.Size = New System.Drawing.Size(9, 17)
        Me.Label3.TabIndex = 8
        Me.Label3.Text = "0"
        '
        'Label2
        '
        Me.Label2.BackColor = System.Drawing.SystemColors.Control
        Me.Label2.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label2.Location = New System.Drawing.Point(32, 32)
        Me.Label2.Name = "Label2"
        Me.Label2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label2.Size = New System.Drawing.Size(81, 17)
        Me.Label2.TabIndex = 7
        Me.Label2.Text = "Port Data:"
        '
        'Button_DioInit
        '
        Me.Button_DioInit.BackColor = System.Drawing.SystemColors.Control
        Me.Button_DioInit.Cursor = System.Windows.Forms.Cursors.Default
        Me.Button_DioInit.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Button_DioInit.Location = New System.Drawing.Point(336, 16)
        Me.Button_DioInit.Name = "Button_DioInit"
        Me.Button_DioInit.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Button_DioInit.Size = New System.Drawing.Size(105, 25)
        Me.Button_DioInit.TabIndex = 2
        Me.Button_DioInit.Text = "DioInit"
        '
        'Edit_DeviceName
        '
        Me.Edit_DeviceName.AcceptsReturn = True
        Me.Edit_DeviceName.AutoSize = False
        Me.Edit_DeviceName.BackColor = System.Drawing.SystemColors.Window
        Me.Edit_DeviceName.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.Edit_DeviceName.ForeColor = System.Drawing.SystemColors.WindowText
        Me.Edit_DeviceName.Location = New System.Drawing.Point(104, 24)
        Me.Edit_DeviceName.MaxLength = 0
        Me.Edit_DeviceName.Name = "Edit_DeviceName"
        Me.Edit_DeviceName.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Edit_DeviceName.Size = New System.Drawing.Size(113, 18)
        Me.Edit_DeviceName.TabIndex = 0
        Me.Edit_DeviceName.Text = "Text1"
        '
        'Label11
        '
        Me.Label11.BackColor = System.Drawing.SystemColors.Control
        Me.Label11.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label11.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label11.Location = New System.Drawing.Point(24, 416)
        Me.Label11.Name = "Label11"
        Me.Label11.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label11.Size = New System.Drawing.Size(73, 17)
        Me.Label11.TabIndex = 18
        Me.Label11.Text = "Return Code:"
        '
        'Label1
        '
        Me.Label1.BackColor = System.Drawing.SystemColors.Control
        Me.Label1.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label1.Location = New System.Drawing.Point(24, 24)
        Me.Label1.Name = "Label1"
        Me.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label1.Size = New System.Drawing.Size(81, 17)
        Me.Label1.TabIndex = 1
        Me.Label1.Text = "Device Name:"
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.AddRange(New System.Windows.Forms.Control() {Me.Button_DioSetIoDirection, Me.Edit_DirData, Me.Label39})
        Me.GroupBox1.Location = New System.Drawing.Point(16, 48)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(441, 65)
        Me.GroupBox1.TabIndex = 24
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "I/O Set"
        '
        'Button_DioSetIoDirection
        '
        Me.Button_DioSetIoDirection.BackColor = System.Drawing.SystemColors.Control
        Me.Button_DioSetIoDirection.Cursor = System.Windows.Forms.Cursors.Default
        Me.Button_DioSetIoDirection.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Button_DioSetIoDirection.Location = New System.Drawing.Point(320, 24)
        Me.Button_DioSetIoDirection.Name = "Button_DioSetIoDirection"
        Me.Button_DioSetIoDirection.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Button_DioSetIoDirection.Size = New System.Drawing.Size(105, 25)
        Me.Button_DioSetIoDirection.TabIndex = 10
        Me.Button_DioSetIoDirection.Text = "DioSetIoDirection"
        '
        'Edit_DirData
        '
        Me.Edit_DirData.AcceptsReturn = True
        Me.Edit_DirData.AutoSize = False
        Me.Edit_DirData.BackColor = System.Drawing.SystemColors.Window
        Me.Edit_DirData.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.Edit_DirData.ForeColor = System.Drawing.SystemColors.WindowText
        Me.Edit_DirData.Location = New System.Drawing.Point(120, 32)
        Me.Edit_DirData.MaxLength = 0
        Me.Edit_DirData.Name = "Edit_DirData"
        Me.Edit_DirData.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Edit_DirData.Size = New System.Drawing.Size(80, 18)
        Me.Edit_DirData.TabIndex = 9
        Me.Edit_DirData.Text = "Text1"
        '
        'Label39
        '
        Me.Label39.BackColor = System.Drawing.SystemColors.Control
        Me.Label39.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label39.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label39.Location = New System.Drawing.Point(32, 32)
        Me.Label39.Name = "Label39"
        Me.Label39.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label39.Size = New System.Drawing.Size(81, 17)
        Me.Label39.TabIndex = 8
        Me.Label39.Text = "I/O Direction:"
        '
        'NETMULTIIO
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(471, 478)
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.GroupBox1, Me.Button_DioExit, Me.Button_Exit, Me.Edit_ReturnCode, Me.Frame4, Me.Frame3, Me.Frame2, Me.Frame1, Me.Button_DioInit, Me.Edit_DeviceName, Me.Label11, Me.Label1})
        Me.Location = New System.Drawing.Point(4, 23)
        Me.MaximizeBox = False
        Me.MinimizeBox = False
        Me.Name = "NETMULTIIO"
        Me.Text = "Multi Port/Bit I/O"
        Me.Frame4.ResumeLayout(False)
        Me.Frame3.ResumeLayout(False)
        Me.Frame2.ResumeLayout(False)
        Me.Frame1.ResumeLayout(False)
        Me.GroupBox1.ResumeLayout(False)
        Me.ResumeLayout(False)

    End Sub
#End Region
#Region "Upgrade Support "
    Private Shared m_vb6FormDefInstance As NETMULTIIO
    Private Shared m_InitializingDefInstance As Boolean
    Public Shared Property DefInstance() As NETMULTIIO
        Get
            If m_vb6FormDefInstance Is Nothing OrElse m_vb6FormDefInstance.IsDisposed Then
                m_InitializingDefInstance = True
                m_vb6FormDefInstance = New NETMULTIIO()
                m_InitializingDefInstance = False
            End If
            DefInstance = m_vb6FormDefInstance
        End Get
        Set(ByVal value As NETMULTIIO)
            m_vb6FormDefInstance = Value
        End Set
    End Property
#End Region

    Dim Id As Short                     ' Device ID
    Dim Ret As Integer                  ' Return code
    Dim InpPortNum As Short             ' Input port number
    Dim OutPortNum As Short             ' Output port number
    Dim InpBitNum As Short              ' Input bit number
    Dim OutBitNum As Short              ' Output port number
    Dim szError As New StringBuilder("", 256)  ' Error string
    Dim szText As New String("", 100)

    Dim Edit_OutPortData(7) As TextBox
    Dim Edit_OutBitData(7) As TextBox
    Dim Edit_InpPortData(7) As TextBox
    Dim Edit_InpBitData(7) As TextBox

    '---------------------------------------------------------
    ' Dialog initialization
    '---------------------------------------------------------
    Private Sub MULTIIO_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load

        Dim i As Integer

        Me.Left = (Screen.PrimaryScreen.Bounds.Width - Me.Width) / 2
        Me.Top = (Screen.PrimaryScreen.Bounds.Height - Me.Height) / 2

        Edit_OutPortData(0) = _Edit_OutPortData_0
        Edit_OutPortData(1) = _Edit_OutPortData_1
        Edit_OutPortData(2) = _Edit_OutPortData_2
        Edit_OutPortData(3) = _Edit_OutPortData_3
        Edit_OutPortData(4) = _Edit_OutPortData_4
        Edit_OutPortData(5) = _Edit_OutPortData_5
        Edit_OutPortData(6) = _Edit_OutPortData_6
        Edit_OutPortData(7) = _Edit_OutPortData_7

        Edit_OutBitData(0) = _Edit_OutBitData_0
        Edit_OutBitData(1) = _Edit_OutBitData_1
        Edit_OutBitData(2) = _Edit_OutBitData_2
        Edit_OutBitData(3) = _Edit_OutBitData_3
        Edit_OutBitData(4) = _Edit_OutBitData_4
        Edit_OutBitData(5) = _Edit_OutBitData_5
        Edit_OutBitData(6) = _Edit_OutBitData_6
        Edit_OutBitData(7) = _Edit_OutBitData_7

        Edit_InpPortData(0) = _Edit_InpPortData_0
        Edit_InpPortData(1) = _Edit_InpPortData_1
        Edit_InpPortData(2) = _Edit_InpPortData_2
        Edit_InpPortData(3) = _Edit_InpPortData_3
        Edit_InpPortData(4) = _Edit_InpPortData_4
        Edit_InpPortData(5) = _Edit_InpPortData_5
        Edit_InpPortData(6) = _Edit_InpPortData_6
        Edit_InpPortData(7) = _Edit_InpPortData_7

        Edit_InpBitData(0) = _Edit_InpBitData_0
        Edit_InpBitData(1) = _Edit_InpBitData_1
        Edit_InpBitData(2) = _Edit_InpBitData_2
        Edit_InpBitData(3) = _Edit_InpBitData_3
        Edit_InpBitData(4) = _Edit_InpBitData_4
        Edit_InpBitData(5) = _Edit_InpBitData_5
        Edit_InpBitData(6) = _Edit_InpBitData_6
        Edit_InpBitData(7) = _Edit_InpBitData_7

        'Screen item initialization
        Edit_DeviceName.Text = "DIO000"
        Edit_DirData.Text = ""

        'Port input
        For i = 0 To 7
            Edit_InpPortData(i).Text = ""
        Next i

        'Bit input
        For i = 0 To 7
            Edit_InpBitData(i).Text = ""
        Next i

        'Port output
        Edit_OutPortData(0).Text = "11"
        Edit_OutPortData(1).Text = "22"
        Edit_OutPortData(2).Text = "33"
        Edit_OutPortData(3).Text = "44"
        Edit_OutPortData(4).Text = "55"
        Edit_OutPortData(5).Text = "66"
        Edit_OutPortData(6).Text = "77"
        Edit_OutPortData(7).Text = "88"

        'Bit output
        Edit_OutBitData(0).Text = "1"
        Edit_OutBitData(1).Text = "0"
        Edit_OutBitData(2).Text = "1"
        Edit_OutBitData(3).Text = "0"
        Edit_OutBitData(4).Text = "1"
        Edit_OutBitData(5).Text = "0"
        Edit_OutBitData(6).Text = "1"
        Edit_OutBitData(7).Text = "0"

        'Return code
        Edit_ReturnCode.Text = ""

    End Sub

    '---------------------------------------------------------
    ' Initialization process
    '---------------------------------------------------------
    Private Sub Button_DioInit_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Button_DioInit.Click

        Dim szDeviceName As String
        Dim i As Short

        'Get device name from screen
        szDeviceName = Edit_DeviceName.Text

        'Initializion function execute and get ID
        Ret = DioInit(szDeviceName, Id)

        'Error process
        Call DioGetErrorString(Ret, szError)
        Edit_ReturnCode.Text = "Ret = " & Ret & ":" & szError.ToString()
        If (Ret <> DIO_ERR_SUCCESS) Then
            Exit Sub
        End If

        'Get all ports number
        Ret = DioGetMaxPorts(Id, InpPortNum, OutPortNum)
        If (Ret <> DIO_ERR_SUCCESS) Then
            Call DioGetErrorString(Ret, szError)
            Edit_ReturnCode.Text = "Ret = " & Ret & ":" & szError.ToString()
            Exit Sub
        End If

        'This sample must not exceed 8 ports
        If (InpPortNum > 8) Then
            InpPortNum = 8
        End If

        If (OutPortNum > 8) Then
            OutPortNum = 8
        End If

        'Mask screen
        For i = InpPortNum To 7
            Edit_InpPortData(i).Enabled = False
        Next i

        InpBitNum = 8
        If (InpPortNum = 0) Then
            InpBitNum = 0
            For i = 0 To 7
                Edit_InpBitData(i).Enabled = False
            Next i
        End If

        For i = OutPortNum To 7
            Edit_OutPortData(i).Enabled = False
        Next i

        OutBitNum = 8
        If (OutPortNum = 0) Then
            OutBitNum = 0
            For i = 0 To 7
                Edit_OutBitData(i).Enabled = False
            Next i
        End If

    End Sub

    '---------------------------------------------------------
    ' Exit process
    '---------------------------------------------------------
    Private Sub Button_DioExit_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Button_DioExit.Click

        'Exit function execute
        Ret = DioExit(Id)

        'Error process
        Call DioGetErrorString(Ret, szError)
        Edit_ReturnCode.Text = "Ret = " & Ret & ":" & szError.ToString()

    End Sub

    '---------------------------------------------------------
    ' Dialog exit
    '---------------------------------------------------------
    Private Sub Button_Exit_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Button_Exit.Click

        'Exit function execute
        Ret = DioExit(Id)

        'Dialog exit
        End

    End Sub

    '---------------------------------------------------------
    ' MultiPort input
    '---------------------------------------------------------
    Private Sub Button_DioInpMultiByte_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Button_DioInpMultiByte.Click

        Dim InpPortNo(DIO_MAX_ACCS_PORTS - 1) As Short
        Dim InpPortData(DIO_MAX_ACCS_PORTS - 1) As Byte
        Dim i As Short
        Dim timestamp As UShort
        Dim mode As Byte

        'Set PortNo
        For i = 0 To InpPortNum - 1
            InpPortNo(i) = i
        Next i

        ' Direct access to device
        mode = DIONET_MODE_DIRECT

        'Port input
        Ret = DioInpMultiByteSR(Id, InpPortNo, InpPortNum, InpPortData, timestamp, mode)

        'Error process
        Call DioGetErrorString(Ret, szError)
        Edit_ReturnCode.Text = "Ret = " & Ret & ":" & szError.ToString()
        If (Ret <> DIO_ERR_SUCCESS) Then
            Exit Sub
        End If

        'Data express
        For i = 0 To InpPortNum - 1
            szText = Hex(InpPortData(i))                    '--------%2x
            Edit_InpPortData(i).Text = szText
        Next i

    End Sub

    '---------------------------------------------------------
    ' MultiBit input
    '---------------------------------------------------------
    Private Sub Button_DioInpMultiBit_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Button_DioInpMultiBit.Click

        Dim InpBitNo(DIO_MAX_ACCS_PORTS - 1) As Short
        Dim InpBitData(DIO_MAX_ACCS_PORTS - 1) As Byte
        Dim i As Short
        Dim timestamp As UShort
        Dim mode As Byte

        'Set BitNo
        For i = 0 To InpBitNum - 1
            InpBitNo(i) = i
        Next i

        ' Direct access to device
        mode = DIONET_MODE_DIRECT

        'Bit input
        Ret = DioInpMultiBitSR(Id, InpBitNo, InpBitNum, InpBitData, timestamp, mode)

        'Error process
        Call DioGetErrorString(Ret, szError)
        Edit_ReturnCode.Text = "Ret = " & Ret & ":" & szError.ToString()
        If (Ret <> DIO_ERR_SUCCESS) Then
            Exit Sub
        End If

        'Data express
        For i = 0 To InpBitNum - 1
            szText = Hex(InpBitData(i))                     '--------%2x
            Edit_InpBitData(i).Text = szText
        Next i

    End Sub

    '---------------------------------------------------------
    ' MultiPort Output
    '---------------------------------------------------------
    Private Sub Button_DioOutMultiByte_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Button_DioOutMultiByte.Click

        Dim OutPortNo(DIO_MAX_ACCS_PORTS - 1) As Short
        Dim OutPortData(DIO_MAX_ACCS_PORTS - 1) As Byte
        Dim i As Short

        'Set port No. and port data
        For i = 0 To OutPortNum - 1
            OutPortNo(i) = i
            szText = Edit_OutPortData(i).Text
            OutPortData(i) = Val("&H" & szText)
        Next i

        'Port output
        Ret = DioOutMultiByte(Id, OutPortNo, OutPortNum, OutPortData)

        'Error process
        Call DioGetErrorString(Ret, szError)
        Edit_ReturnCode.Text = "Ret = " & Ret & ":" & szError.ToString()
        If (Ret <> DIO_ERR_SUCCESS) Then
            Exit Sub
        End If

    End Sub


    '---------------------------------------------------------
    ' MultiBit output
    '---------------------------------------------------------
    Private Sub Button_DioOutMultiBit_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Button_DioOutMultiBit.Click

        Dim OutBitNo(DIO_MAX_ACCS_PORTS - 1) As Short
        Dim OutBitData(DIO_MAX_ACCS_PORTS - 1) As Byte
        Dim i As Short

        'Set bit No. and bit data
        For i = 0 To OutBitNum - 1
            OutBitNo(i) = i
            szText = Edit_OutBitData(i).Text
            OutBitData(i) = Val("&H" & szText)
        Next i

        'Bit output
        Ret = DioOutMultiBit(Id, OutBitNo, OutBitNum, OutBitData)

        'Error process
        Call DioGetErrorString(Ret, szError)
        Edit_ReturnCode.Text = "Ret = " & Ret & ":" & szError.ToString()
        If (Ret <> DIO_ERR_SUCCESS) Then
            Exit Sub
        End If

    End Sub

    '---------------------------------------------------------
    ' Set IoDirection
    ' It can be used only by the devices support the function.
    '---------------------------------------------------------
    Private Sub Button_DioSetIoDirection_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button_DioSetIoDirection.Click
        Dim dwDir As Integer

        '-----------------------------
        ' Get IoDirection
        '-----------------------------
        szText = Edit_DirData.Text
        dwDir = Val("&H" & szText)
        '-----------------------------
        ' Set IoDirection
        '-----------------------------
        Ret = DioSetIoDirection(Id, dwDir)
        '-----------------------------
        ' Error process
        '-----------------------------
        Call DioGetErrorString(Ret, szError)
        Edit_ReturnCode.Text = "Ret = " & Ret & ":" & szError.ToString()
        If (Ret <> DIO_ERR_SUCCESS) Then
            Exit Sub
        End If
    End Sub
End Class