Option Strict Off
Option Explicit On 
Imports System.Runtime.InteropServices
Friend Class Form1
	Inherits System.Windows.Forms.Form
#Region "Windows tH[ fUCiɂĐꂽR[h"
	Public Sub New()
		MyBase.New()
		If m_vb6FormDefInstance Is Nothing Then
			If m_InitializingDefInstance Then
				m_vb6FormDefInstance = Me
			Else
				Try 
					'X^[gAbv tH[ɂẮAŏɍ쐬ꂽCX^XCX^XɂȂ܂B
					If System.Reflection.Assembly.GetExecutingAssembly.EntryPoint.DeclaringType Is Me.GetType Then
						m_vb6FormDefInstance = Me
					End If
				Catch
				End Try
			End If
		End If
		'̌ĂяóAWindows tH[ fUCiŕKvłB
		InitializeComponent()
	End Sub
	'Form ́AR|[lgꗗɌ㏈s邽߂ dispose I[o[Ch܂B
	Protected Overloads Overrides Sub Dispose(ByVal Disposing As Boolean)
		If Disposing Then
			If Not components Is Nothing Then
				components.Dispose()
			End If
		End If
		MyBase.Dispose(Disposing)
	End Sub
	'Windows tH[ fUCiŕKvłB
	Private components As System.ComponentModel.IContainer
	Public ToolTip1 As System.Windows.Forms.ToolTip
	Public WithEvents TextRet As System.Windows.Forms.TextBox
	Public WithEvents Frame5 As System.Windows.Forms.GroupBox
	Public WithEvents Send As System.Windows.Forms.Button
	Public WithEvents DelOne As System.Windows.Forms.Button
	Public WithEvents DelAll As System.Windows.Forms.Button
	Public WithEvents CmdList As System.Windows.Forms.TextBox
	Public WithEvents Frame4 As System.Windows.Forms.GroupBox
	Public WithEvents Exit_Renamed As System.Windows.Forms.Button
    Public WithEvents Initialize As System.Windows.Forms.Button
    Public WithEvents UNL As System.Windows.Forms.Button
	Public WithEvents DCL As System.Windows.Forms.Button
	Public WithEvents LLO As System.Windows.Forms.Button
	Public WithEvents UNT As System.Windows.Forms.Button
	Public WithEvents Frame3 As System.Windows.Forms.GroupBox
	Public WithEvents GET_Renamed As System.Windows.Forms.Button
	Public WithEvents SDC As System.Windows.Forms.Button
	Public WithEvents GTL As System.Windows.Forms.Button
	Public WithEvents YrAdrBox As System.Windows.Forms.ComboBox
	Public WithEvents Label1 As System.Windows.Forms.Label
	Public WithEvents Frame2 As System.Windows.Forms.GroupBox
	Public WithEvents Frame1 As System.Windows.Forms.GroupBox
	' : ȉ̃vV[W Windows tH[ fUCiŕKvłB
	'Windows tH[ fUCigĕύXł܂B
	'R[hGfB^gďCȂłB


	<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container()
        Me.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components)
        Me.Frame5 = New System.Windows.Forms.GroupBox()
        Me.TextRet = New System.Windows.Forms.TextBox()
        Me.Frame4 = New System.Windows.Forms.GroupBox()
        Me.Send = New System.Windows.Forms.Button()
        Me.DelOne = New System.Windows.Forms.Button()
        Me.DelAll = New System.Windows.Forms.Button()
        Me.CmdList = New System.Windows.Forms.TextBox()
        Me.Exit_Renamed = New System.Windows.Forms.Button()
        Me.Initialize = New System.Windows.Forms.Button()
        Me.Frame1 = New System.Windows.Forms.GroupBox()
        Me.Frame3 = New System.Windows.Forms.GroupBox()
        Me.UNL = New System.Windows.Forms.Button()
        Me.DCL = New System.Windows.Forms.Button()
        Me.LLO = New System.Windows.Forms.Button()
        Me.UNT = New System.Windows.Forms.Button()
        Me.Frame2 = New System.Windows.Forms.GroupBox()
        Me.GET_Renamed = New System.Windows.Forms.Button()
        Me.SDC = New System.Windows.Forms.Button()
        Me.GTL = New System.Windows.Forms.Button()
        Me.YrAdrBox = New System.Windows.Forms.ComboBox()
        Me.Label1 = New System.Windows.Forms.Label()
        Me.Frame5.SuspendLayout()
        Me.Frame4.SuspendLayout()
        Me.Frame1.SuspendLayout()
        Me.Frame3.SuspendLayout()
        Me.Frame2.SuspendLayout()
        Me.SuspendLayout()
        '
        'Frame5
        '
        Me.Frame5.BackColor = System.Drawing.SystemColors.Control
        Me.Frame5.Controls.AddRange(New System.Windows.Forms.Control() {Me.TextRet})
        Me.Frame5.Font = New System.Drawing.Font("lr oSVbN", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.Frame5.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame5.Location = New System.Drawing.Point(6, 246)
        Me.Frame5.Name = "Frame5"
        Me.Frame5.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame5.Size = New System.Drawing.Size(395, 55)
        Me.Frame5.TabIndex = 21
        Me.Frame5.TabStop = False
        Me.Frame5.Text = "߂l"
        '
        'TextRet
        '
        Me.TextRet.AcceptsReturn = True
        Me.TextRet.AutoSize = False
        Me.TextRet.BackColor = System.Drawing.SystemColors.Window
        Me.TextRet.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.TextRet.Font = New System.Drawing.Font("lr oSVbN", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.TextRet.ForeColor = System.Drawing.SystemColors.WindowText
        Me.TextRet.Location = New System.Drawing.Point(10, 20)
        Me.TextRet.MaxLength = 0
        Me.TextRet.Name = "TextRet"
        Me.TextRet.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.TextRet.Size = New System.Drawing.Size(369, 24)
        Me.TextRet.TabIndex = 15
        Me.TextRet.Text = ""
        '
        'Frame4
        '
        Me.Frame4.BackColor = System.Drawing.SystemColors.Control
        Me.Frame4.Controls.AddRange(New System.Windows.Forms.Control() {Me.Send, Me.DelOne, Me.DelAll, Me.CmdList})
        Me.Frame4.Font = New System.Drawing.Font("lr oSVbN", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.Frame4.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame4.Location = New System.Drawing.Point(8, 130)
        Me.Frame4.Name = "Frame4"
        Me.Frame4.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame4.Size = New System.Drawing.Size(495, 109)
        Me.Frame4.TabIndex = 20
        Me.Frame4.TabStop = False
        Me.Frame4.Text = "o͂}`CbZ[W(MAX=30)"
        '
        'Send
        '
        Me.Send.BackColor = System.Drawing.SystemColors.Control
        Me.Send.Cursor = System.Windows.Forms.Cursors.Default
        Me.Send.Font = New System.Drawing.Font("lr oSVbN", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.Send.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Send.Location = New System.Drawing.Point(426, 22)
        Me.Send.Name = "Send"
        Me.Send.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Send.Size = New System.Drawing.Size(63, 73)
        Me.Send.TabIndex = 14
        Me.Send.Text = "M(S)"
        '
        'DelOne
        '
        Me.DelOne.BackColor = System.Drawing.SystemColors.Control
        Me.DelOne.Cursor = System.Windows.Forms.Cursors.Default
        Me.DelOne.Font = New System.Drawing.Font("lr oSVbN", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.DelOne.ForeColor = System.Drawing.SystemColors.ControlText
        Me.DelOne.Location = New System.Drawing.Point(335, 60)
        Me.DelOne.Name = "DelOne"
        Me.DelOne.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.DelOne.Size = New System.Drawing.Size(88, 35)
        Me.DelOne.TabIndex = 13
        Me.DelOne.Text = "폜(&B)"
        '
        'DelAll
        '
        Me.DelAll.BackColor = System.Drawing.SystemColors.Control
        Me.DelAll.Cursor = System.Windows.Forms.Cursors.Default
        Me.DelAll.Font = New System.Drawing.Font("lr oSVbN", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.DelAll.ForeColor = System.Drawing.SystemColors.ControlText
        Me.DelAll.Location = New System.Drawing.Point(335, 22)
        Me.DelAll.Name = "DelAll"
        Me.DelAll.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.DelAll.Size = New System.Drawing.Size(88, 35)
        Me.DelAll.TabIndex = 12
        Me.DelAll.Text = "S폜(&R)"
        '
        'CmdList
        '
        Me.CmdList.AcceptsReturn = True
        Me.CmdList.AutoSize = False
        Me.CmdList.BackColor = System.Drawing.SystemColors.Window
        Me.CmdList.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.CmdList.Font = New System.Drawing.Font("lr oSVbN", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.CmdList.ForeColor = System.Drawing.SystemColors.WindowText
        Me.CmdList.Location = New System.Drawing.Point(10, 22)
        Me.CmdList.MaxLength = 0
        Me.CmdList.Multiline = True
        Me.CmdList.Name = "CmdList"
        Me.CmdList.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.CmdList.Size = New System.Drawing.Size(322, 73)
        Me.CmdList.TabIndex = 11
        Me.CmdList.Text = ""
        '
        'Exit_Renamed
        '
        Me.Exit_Renamed.BackColor = System.Drawing.SystemColors.Control
        Me.Exit_Renamed.Cursor = System.Windows.Forms.Cursors.Default
        Me.Exit_Renamed.Font = New System.Drawing.Font("lr oSVbN", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.Exit_Renamed.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Exit_Renamed.Location = New System.Drawing.Point(416, 264)
        Me.Exit_Renamed.Name = "Exit_Renamed"
        Me.Exit_Renamed.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Exit_Renamed.Size = New System.Drawing.Size(87, 33)
        Me.Exit_Renamed.TabIndex = 2
        Me.Exit_Renamed.Text = "I(&X)"
        '
        'Initialize
        '
        Me.Initialize.BackColor = System.Drawing.SystemColors.Control
        Me.Initialize.Cursor = System.Windows.Forms.Cursors.Default
        Me.Initialize.Font = New System.Drawing.Font("lr oSVbN", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.Initialize.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Initialize.Location = New System.Drawing.Point(416, 16)
        Me.Initialize.Name = "Initialize"
        Me.Initialize.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Initialize.Size = New System.Drawing.Size(87, 25)
        Me.Initialize.TabIndex = 0
        Me.Initialize.Text = "(&I)"
        '
        'Frame1
        '
        Me.Frame1.BackColor = System.Drawing.SystemColors.Control
        Me.Frame1.Controls.AddRange(New System.Windows.Forms.Control() {Me.Frame3, Me.Frame2})
        Me.Frame1.Font = New System.Drawing.Font("lr oSVbN", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.Frame1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame1.Location = New System.Drawing.Point(8, 8)
        Me.Frame1.Name = "Frame1"
        Me.Frame1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame1.Size = New System.Drawing.Size(391, 115)
        Me.Frame1.TabIndex = 16
        Me.Frame1.TabStop = False
        Me.Frame1.Text = "}`CbZ[W쐬"
        '
        'Frame3
        '
        Me.Frame3.BackColor = System.Drawing.SystemColors.Control
        Me.Frame3.Controls.AddRange(New System.Windows.Forms.Control() {Me.UNL, Me.DCL, Me.LLO, Me.UNT})
        Me.Frame3.Font = New System.Drawing.Font("lr oSVbN", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.Frame3.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame3.Location = New System.Drawing.Point(222, 24)
        Me.Frame3.Name = "Frame3"
        Me.Frame3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame3.Size = New System.Drawing.Size(155, 79)
        Me.Frame3.TabIndex = 18
        Me.Frame3.TabStop = False
        Me.Frame3.Text = "R}ĥ"
        '
        'UNL
        '
        Me.UNL.BackColor = System.Drawing.SystemColors.Control
        Me.UNL.Cursor = System.Windows.Forms.Cursors.Default
        Me.UNL.Font = New System.Drawing.Font("lr oSVbN", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.UNL.ForeColor = System.Drawing.SystemColors.ControlText
        Me.UNL.Location = New System.Drawing.Point(82, 50)
        Me.UNL.Name = "UNL"
        Me.UNL.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.UNL.Size = New System.Drawing.Size(63, 23)
        Me.UNL.TabIndex = 10
        Me.UNL.Text = "U&NL"
        '
        'DCL
        '
        Me.DCL.BackColor = System.Drawing.SystemColors.Control
        Me.DCL.Cursor = System.Windows.Forms.Cursors.Default
        Me.DCL.Font = New System.Drawing.Font("lr oSVbN", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.DCL.ForeColor = System.Drawing.SystemColors.ControlText
        Me.DCL.Location = New System.Drawing.Point(82, 20)
        Me.DCL.Name = "DCL"
        Me.DCL.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.DCL.Size = New System.Drawing.Size(63, 23)
        Me.DCL.TabIndex = 8
        Me.DCL.Text = "&DCL"
        '
        'LLO
        '
        Me.LLO.BackColor = System.Drawing.SystemColors.Control
        Me.LLO.Cursor = System.Windows.Forms.Cursors.Default
        Me.LLO.Font = New System.Drawing.Font("lr oSVbN", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.LLO.ForeColor = System.Drawing.SystemColors.ControlText
        Me.LLO.Location = New System.Drawing.Point(10, 20)
        Me.LLO.Name = "LLO"
        Me.LLO.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.LLO.Size = New System.Drawing.Size(63, 23)
        Me.LLO.TabIndex = 7
        Me.LLO.Text = "&LLO"
        '
        'UNT
        '
        Me.UNT.BackColor = System.Drawing.SystemColors.Control
        Me.UNT.Cursor = System.Windows.Forms.Cursors.Default
        Me.UNT.Font = New System.Drawing.Font("lr oSVbN", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.UNT.ForeColor = System.Drawing.SystemColors.ControlText
        Me.UNT.Location = New System.Drawing.Point(10, 50)
        Me.UNT.Name = "UNT"
        Me.UNT.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.UNT.Size = New System.Drawing.Size(63, 23)
        Me.UNT.TabIndex = 9
        Me.UNT.Text = "&UNT"
        '
        'Frame2
        '
        Me.Frame2.BackColor = System.Drawing.SystemColors.Control
        Me.Frame2.Controls.AddRange(New System.Windows.Forms.Control() {Me.GET_Renamed, Me.SDC, Me.GTL, Me.YrAdrBox, Me.Label1})
        Me.Frame2.Font = New System.Drawing.Font("lr oSVbN", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.Frame2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame2.Location = New System.Drawing.Point(12, 24)
        Me.Frame2.Name = "Frame2"
        Me.Frame2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame2.Size = New System.Drawing.Size(213, 79)
        Me.Frame2.TabIndex = 17
        Me.Frame2.TabStop = False
        Me.Frame2.Text = "@AhXKv"
        '
        'GET_Renamed
        '
        Me.GET_Renamed.BackColor = System.Drawing.SystemColors.Control
        Me.GET_Renamed.Cursor = System.Windows.Forms.Cursors.Default
        Me.GET_Renamed.Font = New System.Drawing.Font("lr oSVbN", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.GET_Renamed.ForeColor = System.Drawing.SystemColors.ControlText
        Me.GET_Renamed.Location = New System.Drawing.Point(142, 50)
        Me.GET_Renamed.Name = "GET_Renamed"
        Me.GET_Renamed.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.GET_Renamed.Size = New System.Drawing.Size(63, 23)
        Me.GET_Renamed.TabIndex = 6
        Me.GET_Renamed.Text = "GE&T"
        '
        'SDC
        '
        Me.SDC.BackColor = System.Drawing.SystemColors.Control
        Me.SDC.Cursor = System.Windows.Forms.Cursors.Default
        Me.SDC.Font = New System.Drawing.Font("lr oSVbN", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.SDC.ForeColor = System.Drawing.SystemColors.ControlText
        Me.SDC.Location = New System.Drawing.Point(74, 50)
        Me.SDC.Name = "SDC"
        Me.SDC.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.SDC.Size = New System.Drawing.Size(63, 23)
        Me.SDC.TabIndex = 5
        Me.SDC.Text = "S&DC"
        '
        'GTL
        '
        Me.GTL.BackColor = System.Drawing.SystemColors.Control
        Me.GTL.Cursor = System.Windows.Forms.Cursors.Default
        Me.GTL.Font = New System.Drawing.Font("lr oSVbN", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.GTL.ForeColor = System.Drawing.SystemColors.ControlText
        Me.GTL.Location = New System.Drawing.Point(6, 50)
        Me.GTL.Name = "GTL"
        Me.GTL.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.GTL.Size = New System.Drawing.Size(63, 23)
        Me.GTL.TabIndex = 4
        Me.GTL.Text = "&GTL"
        '
        'YrAdrBox
        '
        Me.YrAdrBox.BackColor = System.Drawing.SystemColors.Window
        Me.YrAdrBox.Cursor = System.Windows.Forms.Cursors.Default
        Me.YrAdrBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.YrAdrBox.Font = New System.Drawing.Font("lr oSVbN", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.YrAdrBox.ForeColor = System.Drawing.SystemColors.WindowText
        Me.YrAdrBox.Location = New System.Drawing.Point(152, 20)
        Me.YrAdrBox.Name = "YrAdrBox"
        Me.YrAdrBox.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.YrAdrBox.Size = New System.Drawing.Size(51, 23)
        Me.YrAdrBox.TabIndex = 3
        '
        'Label1
        '
        Me.Label1.BackColor = System.Drawing.SystemColors.Control
        Me.Label1.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label1.Font = New System.Drawing.Font("lr oSVbN", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.Label1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label1.Location = New System.Drawing.Point(10, 24)
        Me.Label1.Name = "Label1"
        Me.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label1.Size = New System.Drawing.Size(133, 15)
        Me.Label1.TabIndex = 19
        Me.Label1.Text = "@AhX ="
        '
        'Form1
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(7, 16)
        Me.ClientSize = New System.Drawing.Size(512, 312)
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Frame5, Me.Frame4, Me.Exit_Renamed, Me.Initialize, Me.Frame1})
        Me.Font = New System.Drawing.Font("lr oSVbN", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
        Me.Location = New System.Drawing.Point(225, 234)
        Me.MaximizeBox = False
        Me.MinimizeBox = False
        Me.Name = "Form1"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.Manual
        Me.Text = "}`CbZ[W"
        Me.Frame5.ResumeLayout(False)
        Me.Frame4.ResumeLayout(False)
        Me.Frame1.ResumeLayout(False)
        Me.Frame3.ResumeLayout(False)
        Me.Frame2.ResumeLayout(False)
        Me.ResumeLayout(False)

    End Sub
#End Region 
#Region "AbvO[h EBU[h̃T|[g R[h"
	Private Shared m_vb6FormDefInstance As Form1
	Private Shared m_InitializingDefInstance As Boolean
	Public Shared Property DefInstance() As Form1
		Get
			If m_vb6FormDefInstance Is Nothing OrElse m_vb6FormDefInstance.IsDisposed Then
				m_InitializingDefInstance = True
				m_vb6FormDefInstance = New Form1()
				m_InitializingDefInstance = False
			End If
			DefInstance = m_vb6FormDefInstance
		End Get
		Set
			m_vb6FormDefInstance = Value
		End Set
	End Property
#End Region 
	'******************************************************* [萔] ***
	Const GP_GTL As Short = &H1S			'GTL / Go To Local
	Const GP_SDC As Short = &H4S			'SDC / Selected Device Clear
	Const GP_PPC As Short = &H5S			'PPC / Parallel Poll Configure
	Const GP_GET As Short = &H8S			'GET / Group Excute Trigger
	Const GP_TCT As Short = &H9S			'TCT / Take ConTrol
	Const GP_LLO As Short = &H11S			'LLO / Local Lock Out
	Const GP_DCL As Short = &H14S			'DCL / Device CLear
	Const GP_PPU As Short = &H15S			'PPU / Parallel Poll Unconfigure
	Const GP_SPE As Short = &H18S			'SPE / Serial Poll Enable
	Const GP_SPD As Short = &H19S			'SPD / Serial Poll Disable
	Const GP_MLA As Short = &H20S			'MLA / My Listener Address
	Const GP_UNL As Short = &H3FS			'UNL / UnListen
	Const GP_MTA As Short = &H40S			'MTA / My Talker Address
	Const GP_UNT As Short = &H5FS			'UNT / UnTalker
	
	Dim bRet As Short						'AddComand֐Ŏgp
	Dim CmdNumArray(50) As Integer			'R}h̔z
	Dim CmdNumPos As Integer				'R}ḧʒu
	Dim Adrs As Integer						'AhX쐬Ɏgp
	Dim ErrText As String					'eLXg\p
	Dim gChCmd As GCHandle					'CmdzpGCHandle

	'///// [ tH[̃[h ] //////////////////////////////////////////////////////////////
	Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
		
		For Adrs = 0 To 30					'@AhX쐬
			YrAdrBox.Items.Add(CStr(Adrs))
		Next Adrs

		YrAdrBox.Text = CStr(0)				'ݒ(@AhX̏AhX)
		CmdNum = 1							'ݒ(R}h̐)

		'PinnednhCmdɕz
		If gChCmd.IsAllocated = False Then
			gChCmd = GCHandle.Alloc(Cmd, GCHandleType.Pinned)
		End If
		'PinnednhŃIuWFNg̃AhX擾
		pCmd = gChCmd.AddrOfPinnedObject()
		
	End Sub
	
	
	'///// [  ] ////////////////////////////////////////////////////////////////////////
	Private Sub Initialize_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Initialize.Click
		
		Ret = GpibInit(ErrText)				'SubFunc.basɂ܂B
		TextRet.Text = ErrText
		
		If YrAdrBox.Items.Count = 31 Then	'}CAhXXg폜܂B
			YrAdrBox.Items.RemoveAt((MyAddr))
			If MyAddr = YrAddr Then
				YrAdrBox.SelectedIndex = 0
			End If
		End If
		
	End Sub
	
	'///// [ M ] //////////////////////////////////////////////////////////////////////////
	Private Sub Send_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Send.Click
		
		Cmd(0) = CmdNum - 1					'R}h̑łB
		
		If (CmdNum <= 1) Then				'R}hȂꍇ
			ErrText = "R}h͂ĂB"
		Else
			Ret = GpComand(pCmd)			'R}h()̑M
			If CheckRet("GpComand", Ret, ErrText) = 1 Then GoTo Err_Renamed
		End If

Err_Renamed:
		TextRet.Text = ErrText
		
	End Sub
	
	'///// [ DCL ] ///////////////////////////////////////////////////////////////////////////
	Private Sub DCL_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles DCL.Click
		bRet = AddCommand(GP_DCL, 1)		'AddComand(萔 )
		If bRet = True Then
			CmdNumArray(CmdNumPos) = 1
			CmdNumPos = CmdNumPos + 1
			TextRet.Text = ""
		End If
		CmdList.Text = DispCommandList()	'SubClassɂ܂B
		
	End Sub
	
	'///// [ GET ] ///////////////////////////////////////////////////////////////////////////
	Private Sub GET_Renamed_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles GET_Renamed.Click
		
		bRet = AddCommand(GP_GET, 2)
		If bRet = True Then
			CmdNumArray(CmdNumPos) = 2
			CmdNumPos = CmdNumPos + 1
			TextRet.Text = ""
		End If
		CmdList.Text = DispCommandList()
		
	End Sub
	
	'///// [ GTL ] ///////////////////////////////////////////////////////////////////////////
	Private Sub GTL_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles GTL.Click
		
		bRet = AddCommand(GP_GTL, 2)
		If bRet = True Then
			CmdNumArray(CmdNumPos) = 2
			CmdNumPos = CmdNumPos + 1
			TextRet.Text = ""
		End If
		CmdList.Text = DispCommandList()
		
	End Sub
	
	'///// [ LLO ] ///////////////////////////////////////////////////////////////////////////
	Private Sub LLO_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles LLO.Click
		
		bRet = AddCommand(GP_LLO, 1)
		If bRet = True Then
			CmdNumArray(CmdNumPos) = 1
			CmdNumPos = CmdNumPos + 1
			TextRet.Text = ""
		End If
		CmdList.Text = DispCommandList()
		
	End Sub
	
	'///// [ SDC ] ///////////////////////////////////////////////////////////////////////////
	Private Sub SDC_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles SDC.Click
		
		bRet = AddCommand(GP_SDC, 2)
		If bRet = True Then
			CmdNumArray(CmdNumPos) = 2
			CmdNumPos = CmdNumPos + 1
			TextRet.Text = ""
		End If
		CmdList.Text = DispCommandList()
		
	End Sub
	
	'///// [ UNL ] ///////////////////////////////////////////////////////////////////////////
	Private Sub UNL_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles UNL.Click
		
		bRet = AddCommand(GP_UNL, 1)
		If bRet = True Then
			CmdNumArray(CmdNumPos) = 1
			CmdNumPos = CmdNumPos + 1
			TextRet.Text = ""
		End If
		CmdList.Text = DispCommandList()
		
	End Sub
	
	'///// [ UNT ] ///////////////////////////////////////////////////////////////////////////
	Private Sub UNT_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles UNT.Click
		
		bRet = AddCommand(GP_UNT, 1)
		If bRet = True Then
			CmdNumArray(CmdNumPos) = 1
			CmdNumPos = CmdNumPos + 1
			TextRet.Text = ""
		End If
		CmdList.Text = DispCommandList()
		
	End Sub
	
	'///// [ @AhXύXꂽƂ ] //////////////////////////////////////////////
	Private Sub YrAdrBox_SelectedIndexChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles YrAdrBox.SelectedIndexChanged

		YrAddr = CInt(YrAdrBox.Text)

	End Sub

	'///// [ R}hSď ] ////////////////////////////////////////////////////////////
	Private Sub DelAll_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles DelAll.Click

		CmdNum = 1
		CmdNumPos = 0

		CmdList.Text = ""

	End Sub

	'///// [ R}h1 ] ///////////////////////////////////////////////////////////////
	Private Sub DelOne_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles DelOne.Click

		If CmdNumPos = 0 Then				'bZ[WȂꍇ
			TextRet.Text = "}`CbZ[W܂B"
		Else
			If CmdNumArray(CmdNumPos - 1) = 1 Then
				Cmd(CmdNum) = 0
				CmdNum = CmdNum - 1
			Else
				Cmd(CmdNum) = 0
				Cmd(CmdNum - 1) = 0
				CmdNum = CmdNum - 2
			End If
			CmdNumArray(CmdNumPos - 1) = 0
			CmdNumPos = CmdNumPos - 1
			TextRet.Text = ""
		End If
		CmdList.Text = DispCommandList()

	End Sub

	'///// [I] ////////////////////////////////////////////////////////////////////////////
	Private Sub Exit_Renamed_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Exit_Renamed.Click

		Ret = GpibExit()					'SubClassɂ܂B
		Me.Close()							'_CAȌI

	End Sub

	Private Sub Form1_Closed(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Closed

		'GCHandlẻ
		If gChCmd.IsAllocated = True Then
			gChCmd.Free()
		End If

	End Sub
End Class