Option Strict Off
Option Explicit On
Friend Class Form1
	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 WithEvents Text1 As System.Windows.Forms.TextBox
	Public WithEvents ImageKit1 As AxIMAGEKIT7Lib.AxImageKit
	Public WithEvents Command6 As System.Windows.Forms.Button
	Public WithEvents Command5 As System.Windows.Forms.Button
	Public WithEvents Command2 As System.Windows.Forms.Button
	Public WithEvents Check4 As System.Windows.Forms.CheckBox
	Public WithEvents Check3 As System.Windows.Forms.CheckBox
	Public WithEvents Check2 As System.Windows.Forms.CheckBox
	Public WithEvents Check5 As System.Windows.Forms.CheckBox
	Public WithEvents Text3 As System.Windows.Forms.TextBox
	Public WithEvents Check1 As System.Windows.Forms.CheckBox
	Public WithEvents Label3 As System.Windows.Forms.Label
	Public WithEvents Frame8 As System.Windows.Forms.GroupBox
	Public WithEvents Picture2 As System.Windows.Forms.PictureBox
	Public WithEvents Picture1 As System.Windows.Forms.PictureBox
	Public WithEvents _Option2_2 As System.Windows.Forms.RadioButton
	Public WithEvents _Option2_1 As System.Windows.Forms.RadioButton
	Public WithEvents _Option2_0 As System.Windows.Forms.RadioButton
	Public WithEvents Frame7 As System.Windows.Forms.GroupBox
	Public WithEvents Check7 As System.Windows.Forms.CheckBox
	Public WithEvents Check6 As System.Windows.Forms.CheckBox
	Public WithEvents Command4 As System.Windows.Forms.Button
	Public WithEvents Text2 As System.Windows.Forms.TextBox
	Public WithEvents Frame6 As System.Windows.Forms.GroupBox
	Public WithEvents Command8 As System.Windows.Forms.Button
	Public WithEvents Command7 As System.Windows.Forms.Button
	Public WithEvents Frame5 As System.Windows.Forms.GroupBox
	Public WithEvents Check8 As System.Windows.Forms.CheckBox
	Public WithEvents _Option3_0 As System.Windows.Forms.RadioButton
	Public WithEvents _Option3_1 As System.Windows.Forms.RadioButton
	Public WithEvents _Option3_2 As System.Windows.Forms.RadioButton
	Public WithEvents Frame4 As System.Windows.Forms.GroupBox
	Public WithEvents _Option1_0 As System.Windows.Forms.RadioButton
	Public WithEvents _Option1_2 As System.Windows.Forms.RadioButton
	Public WithEvents _Option1_1 As System.Windows.Forms.RadioButton
	Public WithEvents Frame3 As System.Windows.Forms.GroupBox
	Public WithEvents Command3 As System.Windows.Forms.Button
	Public WithEvents Command1 As System.Windows.Forms.Button
	Public WithEvents Option1 As Microsoft.VisualBasic.Compatibility.VB6.RadioButtonArray
	Public WithEvents Option2 As Microsoft.VisualBasic.Compatibility.VB6.RadioButtonArray
	Public WithEvents Option3 As Microsoft.VisualBasic.Compatibility.VB6.RadioButtonArray
	'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.
	<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))
        Me.Picture1 = New System.Windows.Forms.PictureBox
        Me.Text1 = New System.Windows.Forms.TextBox
        Me.ImageKit1 = New AxIMAGEKIT7Lib.AxImageKit
        Me.Command6 = New System.Windows.Forms.Button
        Me.Command5 = New System.Windows.Forms.Button
        Me.Command2 = New System.Windows.Forms.Button
        Me.Frame8 = New System.Windows.Forms.GroupBox
        Me.Check4 = New System.Windows.Forms.CheckBox
        Me.Check3 = New System.Windows.Forms.CheckBox
        Me.Check2 = New System.Windows.Forms.CheckBox
        Me.Check5 = New System.Windows.Forms.CheckBox
        Me.Text3 = New System.Windows.Forms.TextBox
        Me.Check1 = New System.Windows.Forms.CheckBox
        Me.Label3 = New System.Windows.Forms.Label
        Me.Picture2 = New System.Windows.Forms.PictureBox
        Me.Frame7 = New System.Windows.Forms.GroupBox
        Me._Option2_2 = New System.Windows.Forms.RadioButton
        Me._Option2_1 = New System.Windows.Forms.RadioButton
        Me._Option2_0 = New System.Windows.Forms.RadioButton
        Me.Frame6 = New System.Windows.Forms.GroupBox
        Me.Check7 = New System.Windows.Forms.CheckBox
        Me.Check6 = New System.Windows.Forms.CheckBox
        Me.Command4 = New System.Windows.Forms.Button
        Me.Text2 = New System.Windows.Forms.TextBox
        Me.Frame5 = New System.Windows.Forms.GroupBox
        Me.Command8 = New System.Windows.Forms.Button
        Me.Command7 = New System.Windows.Forms.Button
        Me.Frame4 = New System.Windows.Forms.GroupBox
        Me.Check8 = New System.Windows.Forms.CheckBox
        Me._Option3_0 = New System.Windows.Forms.RadioButton
        Me._Option3_1 = New System.Windows.Forms.RadioButton
        Me._Option3_2 = New System.Windows.Forms.RadioButton
        Me.Frame3 = New System.Windows.Forms.GroupBox
        Me._Option1_0 = New System.Windows.Forms.RadioButton
        Me._Option1_2 = New System.Windows.Forms.RadioButton
        Me._Option1_1 = New System.Windows.Forms.RadioButton
        Me.Command3 = New System.Windows.Forms.Button
        Me.Command1 = New System.Windows.Forms.Button
        Me.Option1 = New Microsoft.VisualBasic.Compatibility.VB6.RadioButtonArray(Me.components)
        Me.Option2 = New Microsoft.VisualBasic.Compatibility.VB6.RadioButtonArray(Me.components)
        Me.Option3 = New Microsoft.VisualBasic.Compatibility.VB6.RadioButtonArray(Me.components)
        CType(Me.ImageKit1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.Frame8.SuspendLayout()
        Me.Frame7.SuspendLayout()
        Me.Frame6.SuspendLayout()
        Me.Frame5.SuspendLayout()
        Me.Frame4.SuspendLayout()
        Me.Frame3.SuspendLayout()
        CType(Me.Option1, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.Option2, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.Option3, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'Picture1
        '
        Me.Picture1.BackColor = System.Drawing.SystemColors.Control
        Me.Picture1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
        Me.Picture1.Cursor = System.Windows.Forms.Cursors.Default
        Me.Picture1.Font = New System.Drawing.Font("Lucida Sans Unicode", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.Picture1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Picture1.Image = CType(resources.GetObject("Picture1.Image"), System.Drawing.Image)
        Me.Picture1.Location = New System.Drawing.Point(8, 528)
        Me.Picture1.Name = "Picture1"
        Me.Picture1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Picture1.Size = New System.Drawing.Size(217, 121)
        Me.Picture1.TabIndex = 14
        Me.Picture1.TabStop = False
        '
        'Text1
        '
        Me.Text1.AcceptsReturn = True
        Me.Text1.AutoSize = False
        Me.Text1.BackColor = System.Drawing.Color.FromArgb(CType(255, Byte), CType(255, Byte), CType(192, Byte))
        Me.Text1.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.Text1.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Text1.ForeColor = System.Drawing.Color.FromArgb(CType(192, Byte), CType(0, Byte), CType(0, Byte))
        Me.Text1.Location = New System.Drawing.Point(8, 0)
        Me.Text1.MaxLength = 0
        Me.Text1.Multiline = True
        Me.Text1.Name = "Text1"
        Me.Text1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Text1.Size = New System.Drawing.Size(569, 65)
        Me.Text1.TabIndex = 37
        Me.Text1.Text = "This sample illustrates a variety of ImageKit functions including the Image-Editi" & _
        "ng Toolbars. Load an image and click the ""Enable Editing"" button to display the " & _
        "toolbar. Once you have made changes to the image, transfer those changes to the " & _
        "image data by clicking the ""Update Image"" button. This sample also illustrates a" & _
        "n alternative way to use the ""Save As"" dialog to save images."
        '
        'ImageKit1
        '
        Me.ImageKit1.Location = New System.Drawing.Point(8, 72)
        Me.ImageKit1.Name = "ImageKit1"
        Me.ImageKit1.OcxState = CType(resources.GetObject("ImageKit1.OcxState"), System.Windows.Forms.AxHost.State)
        Me.ImageKit1.Size = New System.Drawing.Size(465, 289)
        Me.ImageKit1.TabIndex = 36
        '
        'Command6
        '
        Me.Command6.BackColor = System.Drawing.SystemColors.Control
        Me.Command6.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command6.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command6.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command6.Location = New System.Drawing.Point(232, 496)
        Me.Command6.Name = "Command6"
        Me.Command6.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command6.Size = New System.Drawing.Size(217, 25)
        Me.Command6.TabIndex = 24
        Me.Command6.Text = "IkDisp1.ImgHandle --> Picture2.Picture"
        '
        'Command5
        '
        Me.Command5.BackColor = System.Drawing.SystemColors.Control
        Me.Command5.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command5.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command5.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command5.Location = New System.Drawing.Point(8, 496)
        Me.Command5.Name = "Command5"
        Me.Command5.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command5.Size = New System.Drawing.Size(217, 25)
        Me.Command5.TabIndex = 23
        Me.Command5.Text = "Picture1.Picture --> IkDisp1.ImgHandle"
        '
        'Command2
        '
        Me.Command2.BackColor = System.Drawing.SystemColors.Control
        Me.Command2.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command2.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command2.Location = New System.Drawing.Point(480, 168)
        Me.Command2.Name = "Command2"
        Me.Command2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command2.Size = New System.Drawing.Size(97, 36)
        Me.Command2.TabIndex = 21
        Me.Command2.Text = "Save Image"
        '
        'Frame8
        '
        Me.Frame8.BackColor = System.Drawing.SystemColors.Control
        Me.Frame8.Controls.Add(Me.Check4)
        Me.Frame8.Controls.Add(Me.Check3)
        Me.Frame8.Controls.Add(Me.Check2)
        Me.Frame8.Controls.Add(Me.Check5)
        Me.Frame8.Controls.Add(Me.Text3)
        Me.Frame8.Controls.Add(Me.Check1)
        Me.Frame8.Controls.Add(Me.Label3)
        Me.Frame8.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Frame8.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame8.Location = New System.Drawing.Point(8, 424)
        Me.Frame8.Name = "Frame8"
        Me.Frame8.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame8.Size = New System.Drawing.Size(377, 65)
        Me.Frame8.TabIndex = 16
        Me.Frame8.TabStop = False
        Me.Frame8.Text = "Display"
        '
        'Check4
        '
        Me.Check4.BackColor = System.Drawing.SystemColors.Control
        Me.Check4.Cursor = System.Windows.Forms.Cursors.Default
        Me.Check4.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Check4.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check4.Location = New System.Drawing.Point(8, 40)
        Me.Check4.Name = "Check4"
        Me.Check4.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check4.Size = New System.Drawing.Size(81, 17)
        Me.Check4.TabIndex = 28
        Me.Check4.Text = "Graduation"
        '
        'Check3
        '
        Me.Check3.BackColor = System.Drawing.SystemColors.Control
        Me.Check3.Cursor = System.Windows.Forms.Cursors.Default
        Me.Check3.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Check3.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check3.Location = New System.Drawing.Point(232, 16)
        Me.Check3.Name = "Check3"
        Me.Check3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check3.Size = New System.Drawing.Size(121, 17)
        Me.Check3.TabIndex = 27
        Me.Check3.Text = "Drag Scroll"
        '
        'Check2
        '
        Me.Check2.BackColor = System.Drawing.SystemColors.Control
        Me.Check2.Cursor = System.Windows.Forms.Cursors.Default
        Me.Check2.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Check2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check2.Location = New System.Drawing.Point(120, 16)
        Me.Check2.Name = "Check2"
        Me.Check2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check2.Size = New System.Drawing.Size(89, 17)
        Me.Check2.TabIndex = 26
        Me.Check2.Text = "Coordinates"
        '
        'Check5
        '
        Me.Check5.BackColor = System.Drawing.SystemColors.Control
        Me.Check5.Cursor = System.Windows.Forms.Cursors.Default
        Me.Check5.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Check5.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check5.Location = New System.Drawing.Point(120, 40)
        Me.Check5.Name = "Check5"
        Me.Check5.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check5.Size = New System.Drawing.Size(97, 17)
        Me.Check5.TabIndex = 19
        Me.Check5.Text = "Grid"
        '
        'Text3
        '
        Me.Text3.AcceptsReturn = True
        Me.Text3.AutoSize = False
        Me.Text3.BackColor = System.Drawing.SystemColors.Window
        Me.Text3.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.Text3.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Text3.ForeColor = System.Drawing.SystemColors.WindowText
        Me.Text3.Location = New System.Drawing.Point(304, 40)
        Me.Text3.MaxLength = 0
        Me.Text3.Name = "Text3"
        Me.Text3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Text3.Size = New System.Drawing.Size(57, 18)
        Me.Text3.TabIndex = 18
        Me.Text3.Text = "10"
        '
        'Check1
        '
        Me.Check1.BackColor = System.Drawing.SystemColors.Control
        Me.Check1.Cursor = System.Windows.Forms.Cursors.Default
        Me.Check1.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Check1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check1.Location = New System.Drawing.Point(8, 16)
        Me.Check1.Name = "Check1"
        Me.Check1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check1.Size = New System.Drawing.Size(105, 17)
        Me.Check1.TabIndex = 17
        Me.Check1.Text = "Scroll Bars"
        '
        'Label3
        '
        Me.Label3.AutoSize = True
        Me.Label3.BackColor = System.Drawing.SystemColors.Control
        Me.Label3.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label3.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label3.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label3.Location = New System.Drawing.Point(232, 40)
        Me.Label3.Name = "Label3"
        Me.Label3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label3.Size = New System.Drawing.Size(56, 16)
        Me.Label3.TabIndex = 20
        Me.Label3.Text = "Grid Width"
        '
        'Picture2
        '
        Me.Picture2.BackColor = System.Drawing.SystemColors.Control
        Me.Picture2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
        Me.Picture2.Cursor = System.Windows.Forms.Cursors.Default
        Me.Picture2.Font = New System.Drawing.Font("Lucida Sans Unicode", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
        Me.Picture2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Picture2.Location = New System.Drawing.Point(232, 528)
        Me.Picture2.Name = "Picture2"
        Me.Picture2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Picture2.Size = New System.Drawing.Size(217, 121)
        Me.Picture2.TabIndex = 15
        Me.Picture2.TabStop = False
        '
        'Frame7
        '
        Me.Frame7.BackColor = System.Drawing.SystemColors.Control
        Me.Frame7.Controls.Add(Me._Option2_2)
        Me.Frame7.Controls.Add(Me._Option2_1)
        Me.Frame7.Controls.Add(Me._Option2_0)
        Me.Frame7.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Frame7.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame7.Location = New System.Drawing.Point(264, 368)
        Me.Frame7.Name = "Frame7"
        Me.Frame7.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame7.Size = New System.Drawing.Size(201, 49)
        Me.Frame7.TabIndex = 13
        Me.Frame7.TabStop = False
        Me.Frame7.Text = "Units of Measurement"
        '
        '_Option2_2
        '
        Me._Option2_2.BackColor = System.Drawing.SystemColors.Control
        Me._Option2_2.Cursor = System.Windows.Forms.Cursors.Default
        Me._Option2_2.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Option2_2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Option2.SetIndex(Me._Option2_2, CType(2, Short))
        Me._Option2_2.Location = New System.Drawing.Point(136, 24)
        Me._Option2_2.Name = "_Option2_2"
        Me._Option2_2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Option2_2.Size = New System.Drawing.Size(57, 12)
        Me._Option2_2.TabIndex = 33
        Me._Option2_2.TabStop = True
        Me._Option2_2.Text = "Inches"
        '
        '_Option2_1
        '
        Me._Option2_1.BackColor = System.Drawing.SystemColors.Control
        Me._Option2_1.Cursor = System.Windows.Forms.Cursors.Default
        Me._Option2_1.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Option2_1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Option2.SetIndex(Me._Option2_1, CType(1, Short))
        Me._Option2_1.Location = New System.Drawing.Point(72, 24)
        Me._Option2_1.Name = "_Option2_1"
        Me._Option2_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Option2_1.Size = New System.Drawing.Size(57, 12)
        Me._Option2_1.TabIndex = 32
        Me._Option2_1.TabStop = True
        Me._Option2_1.Text = "mm"
        '
        '_Option2_0
        '
        Me._Option2_0.BackColor = System.Drawing.SystemColors.Control
        Me._Option2_0.Cursor = System.Windows.Forms.Cursors.Default
        Me._Option2_0.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Option2_0.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Option2.SetIndex(Me._Option2_0, CType(0, Short))
        Me._Option2_0.Location = New System.Drawing.Point(8, 24)
        Me._Option2_0.Name = "_Option2_0"
        Me._Option2_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Option2_0.Size = New System.Drawing.Size(57, 12)
        Me._Option2_0.TabIndex = 31
        Me._Option2_0.TabStop = True
        Me._Option2_0.Text = "Pixels"
        '
        'Frame6
        '
        Me.Frame6.BackColor = System.Drawing.SystemColors.Control
        Me.Frame6.Controls.Add(Me.Check7)
        Me.Frame6.Controls.Add(Me.Check6)
        Me.Frame6.Controls.Add(Me.Command4)
        Me.Frame6.Controls.Add(Me.Text2)
        Me.Frame6.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Frame6.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame6.Location = New System.Drawing.Point(456, 512)
        Me.Frame6.Name = "Frame6"
        Me.Frame6.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame6.Size = New System.Drawing.Size(128, 137)
        Me.Frame6.TabIndex = 11
        Me.Frame6.TabStop = False
        Me.Frame6.Text = "Pan Window"
        '
        'Check7
        '
        Me.Check7.BackColor = System.Drawing.SystemColors.Control
        Me.Check7.Cursor = System.Windows.Forms.Cursors.Default
        Me.Check7.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Check7.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check7.Location = New System.Drawing.Point(16, 48)
        Me.Check7.Name = "Check7"
        Me.Check7.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check7.Size = New System.Drawing.Size(88, 17)
        Me.Check7.TabIndex = 30
        Me.Check7.Text = "Close Button"
        '
        'Check6
        '
        Me.Check6.BackColor = System.Drawing.SystemColors.Control
        Me.Check6.Cursor = System.Windows.Forms.Cursors.Default
        Me.Check6.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Check6.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check6.Location = New System.Drawing.Point(16, 24)
        Me.Check6.Name = "Check6"
        Me.Check6.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check6.Size = New System.Drawing.Size(81, 17)
        Me.Check6.TabIndex = 29
        Me.Check6.Text = "Display"
        '
        'Command4
        '
        Me.Command4.BackColor = System.Drawing.SystemColors.Control
        Me.Command4.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command4.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command4.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command4.Location = New System.Drawing.Point(8, 72)
        Me.Command4.Name = "Command4"
        Me.Command4.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command4.Size = New System.Drawing.Size(97, 28)
        Me.Command4.TabIndex = 22
        Me.Command4.Text = "Caption"
        '
        'Text2
        '
        Me.Text2.AcceptsReturn = True
        Me.Text2.AutoSize = False
        Me.Text2.BackColor = System.Drawing.SystemColors.Window
        Me.Text2.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.Text2.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Text2.ForeColor = System.Drawing.SystemColors.WindowText
        Me.Text2.Location = New System.Drawing.Point(8, 104)
        Me.Text2.MaxLength = 0
        Me.Text2.Name = "Text2"
        Me.Text2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Text2.Size = New System.Drawing.Size(97, 25)
        Me.Text2.TabIndex = 12
        Me.Text2.Tag = "Text2"
        Me.Text2.Text = "PanWindow"
        '
        'Frame5
        '
        Me.Frame5.BackColor = System.Drawing.SystemColors.Control
        Me.Frame5.Controls.Add(Me.Command8)
        Me.Frame5.Controls.Add(Me.Command7)
        Me.Frame5.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Frame5.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame5.Location = New System.Drawing.Point(480, 312)
        Me.Frame5.Name = "Frame5"
        Me.Frame5.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame5.Size = New System.Drawing.Size(104, 105)
        Me.Frame5.TabIndex = 10
        Me.Frame5.TabStop = False
        Me.Frame5.Text = "Edit"
        '
        'Command8
        '
        Me.Command8.BackColor = System.Drawing.SystemColors.Control
        Me.Command8.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command8.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command8.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command8.Location = New System.Drawing.Point(8, 64)
        Me.Command8.Name = "Command8"
        Me.Command8.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command8.Size = New System.Drawing.Size(88, 25)
        Me.Command8.TabIndex = 34
        Me.Command8.Text = "Update Image"
        '
        'Command7
        '
        Me.Command7.BackColor = System.Drawing.SystemColors.Control
        Me.Command7.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command7.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command7.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command7.Location = New System.Drawing.Point(8, 32)
        Me.Command7.Name = "Command7"
        Me.Command7.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command7.Size = New System.Drawing.Size(88, 25)
        Me.Command7.TabIndex = 25
        Me.Command7.Text = "Enable Editing"
        '
        'Frame4
        '
        Me.Frame4.BackColor = System.Drawing.SystemColors.Control
        Me.Frame4.Controls.Add(Me.Check8)
        Me.Frame4.Controls.Add(Me._Option3_0)
        Me.Frame4.Controls.Add(Me._Option3_1)
        Me.Frame4.Controls.Add(Me._Option3_2)
        Me.Frame4.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Frame4.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame4.Location = New System.Drawing.Point(392, 424)
        Me.Frame4.Name = "Frame4"
        Me.Frame4.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame4.Size = New System.Drawing.Size(192, 65)
        Me.Frame4.TabIndex = 8
        Me.Frame4.TabStop = False
        Me.Frame4.Text = "Display Style"
        '
        'Check8
        '
        Me.Check8.BackColor = System.Drawing.SystemColors.Control
        Me.Check8.Cursor = System.Windows.Forms.Cursors.Default
        Me.Check8.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Check8.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check8.Location = New System.Drawing.Point(8, 24)
        Me.Check8.Name = "Check8"
        Me.Check8.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check8.Size = New System.Drawing.Size(65, 17)
        Me.Check8.TabIndex = 35
        Me.Check8.Text = "Display"
        '
        '_Option3_0
        '
        Me._Option3_0.BackColor = System.Drawing.SystemColors.Control
        Me._Option3_0.Cursor = System.Windows.Forms.Cursors.Default
        Me._Option3_0.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Option3_0.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Option3.SetIndex(Me._Option3_0, CType(0, Short))
        Me._Option3_0.Location = New System.Drawing.Point(88, 8)
        Me._Option3_0.Name = "_Option3_0"
        Me._Option3_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Option3_0.Size = New System.Drawing.Size(65, 20)
        Me._Option3_0.TabIndex = 2
        Me._Option3_0.TabStop = True
        Me._Option3_0.Text = "Flat"
        '
        '_Option3_1
        '
        Me._Option3_1.BackColor = System.Drawing.SystemColors.Control
        Me._Option3_1.Cursor = System.Windows.Forms.Cursors.Default
        Me._Option3_1.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Option3_1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Option3.SetIndex(Me._Option3_1, CType(1, Short))
        Me._Option3_1.Location = New System.Drawing.Point(88, 24)
        Me._Option3_1.Name = "_Option3_1"
        Me._Option3_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Option3_1.Size = New System.Drawing.Size(73, 20)
        Me._Option3_1.TabIndex = 3
        Me._Option3_1.TabStop = True
        Me._Option3_1.Text = "Raised"
        '
        '_Option3_2
        '
        Me._Option3_2.BackColor = System.Drawing.SystemColors.Control
        Me._Option3_2.Cursor = System.Windows.Forms.Cursors.Default
        Me._Option3_2.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Option3_2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Option3.SetIndex(Me._Option3_2, CType(2, Short))
        Me._Option3_2.Location = New System.Drawing.Point(88, 40)
        Me._Option3_2.Name = "_Option3_2"
        Me._Option3_2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Option3_2.Size = New System.Drawing.Size(73, 20)
        Me._Option3_2.TabIndex = 9
        Me._Option3_2.TabStop = True
        Me._Option3_2.Text = "Lowered"
        '
        'Frame3
        '
        Me.Frame3.BackColor = System.Drawing.SystemColors.Control
        Me.Frame3.Controls.Add(Me._Option1_0)
        Me.Frame3.Controls.Add(Me._Option1_2)
        Me.Frame3.Controls.Add(Me._Option1_1)
        Me.Frame3.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Frame3.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame3.Location = New System.Drawing.Point(8, 368)
        Me.Frame3.Name = "Frame3"
        Me.Frame3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame3.Size = New System.Drawing.Size(249, 49)
        Me.Frame3.TabIndex = 4
        Me.Frame3.TabStop = False
        Me.Frame3.Text = "Display Mode"
        '
        '_Option1_0
        '
        Me._Option1_0.BackColor = System.Drawing.SystemColors.Control
        Me._Option1_0.Cursor = System.Windows.Forms.Cursors.Default
        Me._Option1_0.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Option1_0.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Option1.SetIndex(Me._Option1_0, CType(0, Short))
        Me._Option1_0.Location = New System.Drawing.Point(8, 24)
        Me._Option1_0.Name = "_Option1_0"
        Me._Option1_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Option1_0.Size = New System.Drawing.Size(57, 12)
        Me._Option1_0.TabIndex = 7
        Me._Option1_0.TabStop = True
        Me._Option1_0.Text = "Scale"
        '
        '_Option1_2
        '
        Me._Option1_2.BackColor = System.Drawing.SystemColors.Control
        Me._Option1_2.Cursor = System.Windows.Forms.Cursors.Default
        Me._Option1_2.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Option1_2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Option1.SetIndex(Me._Option1_2, CType(2, Short))
        Me._Option1_2.Location = New System.Drawing.Point(160, 24)
        Me._Option1_2.Name = "_Option1_2"
        Me._Option1_2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Option1_2.Size = New System.Drawing.Size(81, 12)
        Me._Option1_2.TabIndex = 6
        Me._Option1_2.TabStop = True
        Me._Option1_2.Text = "Actual Size"
        '
        '_Option1_1
        '
        Me._Option1_1.BackColor = System.Drawing.SystemColors.Control
        Me._Option1_1.Cursor = System.Windows.Forms.Cursors.Default
        Me._Option1_1.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Option1_1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Option1.SetIndex(Me._Option1_1, CType(1, Short))
        Me._Option1_1.Location = New System.Drawing.Point(80, 24)
        Me._Option1_1.Name = "_Option1_1"
        Me._Option1_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Option1_1.Size = New System.Drawing.Size(65, 12)
        Me._Option1_1.TabIndex = 5
        Me._Option1_1.TabStop = True
        Me._Option1_1.Text = "Stretch"
        '
        'Command3
        '
        Me.Command3.BackColor = System.Drawing.SystemColors.Control
        Me.Command3.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command3.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command3.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command3.Location = New System.Drawing.Point(480, 240)
        Me.Command3.Name = "Command3"
        Me.Command3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command3.Size = New System.Drawing.Size(97, 33)
        Me.Command3.TabIndex = 1
        Me.Command3.Text = "End"
        '
        'Command1
        '
        Me.Command1.BackColor = System.Drawing.SystemColors.Control
        Me.Command1.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command1.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command1.Location = New System.Drawing.Point(480, 88)
        Me.Command1.Name = "Command1"
        Me.Command1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command1.Size = New System.Drawing.Size(97, 33)
        Me.Command1.TabIndex = 0
        Me.Command1.Text = "Load Image"
        '
        'Option1
        '
        '
        'Option2
        '
        '
        'Option3
        '
        '
        'Form1
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.BackColor = System.Drawing.SystemColors.Control
        Me.ClientSize = New System.Drawing.Size(586, 658)
        Me.Controls.Add(Me.Text1)
        Me.Controls.Add(Me.ImageKit1)
        Me.Controls.Add(Me.Command6)
        Me.Controls.Add(Me.Command5)
        Me.Controls.Add(Me.Command2)
        Me.Controls.Add(Me.Frame8)
        Me.Controls.Add(Me.Picture2)
        Me.Controls.Add(Me.Picture1)
        Me.Controls.Add(Me.Frame7)
        Me.Controls.Add(Me.Frame6)
        Me.Controls.Add(Me.Frame5)
        Me.Controls.Add(Me.Frame4)
        Me.Controls.Add(Me.Frame3)
        Me.Controls.Add(Me.Command3)
        Me.Controls.Add(Me.Command1)
        Me.Cursor = System.Windows.Forms.Cursors.Default
        Me.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
        Me.Location = New System.Drawing.Point(2, 21)
        Me.Name = "Form1"
        Me.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "Edit"
        CType(Me.ImageKit1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.Frame8.ResumeLayout(False)
        Me.Frame7.ResumeLayout(False)
        Me.Frame6.ResumeLayout(False)
        Me.Frame5.ResumeLayout(False)
        Me.Frame4.ResumeLayout(False)
        Me.Frame3.ResumeLayout(False)
        CType(Me.Option1, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.Option2, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.Option3, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)

    End Sub
#End Region 
#Region "Upgrade Support "
	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 
	Public SaveType As Short
	Dim Coordinate As IMAGEKIT7Lib.UnitConstants
	Dim ShowMode As IMAGEKIT7Lib.DispModeConstants
	
	Private Sub Check1_CheckStateChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Check1.CheckStateChanged
		If Check1.CheckState = 1 Then
			ImageKit1.ScrollBar = True
		Else
			ImageKit1.ScrollBar = False
		End If
		
		ImageKit1.Display(IMAGEKIT7Lib.DispModeConstants.ikActualSize)
	End Sub
	
	Private Sub Check2_CheckStateChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Check2.CheckStateChanged
		If Check2.CheckState = 1 Then
			ImageKit1.ToolTip = Coordinate
		Else
			ImageKit1.ToolTip = IMAGEKIT7Lib.UnitConstants.ikNone
		End If
	End Sub
	
	Private Sub Check3_CheckStateChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Check3.CheckStateChanged
		If Check3.CheckState = 1 Then
			ImageKit1.MouseDragImage = True
		Else
			ImageKit1.MouseDragImage = False
		End If
	End Sub
	
	Private Sub Check4_CheckStateChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Check4.CheckStateChanged
		If Check4.CheckState = 1 Then
			ImageKit1.Grad = Coordinate
		Else
			ImageKit1.Grad = IMAGEKIT7Lib.UnitConstants.ikNone
		End If
	End Sub
	
	Private Sub Check5_CheckStateChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Check5.CheckStateChanged
		If Check5.CheckState = 1 Then
			ImageKit1.GridSpace = CDbl(Text3.Text)
			ImageKit1.Grid = Coordinate
		Else
			ImageKit1.Grid = IMAGEKIT7Lib.UnitConstants.ikNone
		End If
	End Sub
	
	Private Sub Check6_CheckStateChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Check6.CheckStateChanged
		ImageKit1.PanWindow.Show(Check6.CheckState)
	End Sub
	
	Private Sub Check7_CheckStateChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Check7.CheckStateChanged
		ImageKit1.PanWindow.CloseBox = Check7.CheckState
	End Sub
	
	Private Sub Check8_CheckStateChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Check8.CheckStateChanged
		ImageKit1.BorderVisible = Check8.CheckState
	End Sub
	
	'load
	Private Sub Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command1.Click
		Dim ret As Boolean
		
		If ImageKit1.Edit.EditStatus <> False Then
			If MsgBox("You are editing. Are you sure you want to load an image?", MsgBoxStyle.Question + MsgBoxStyle.YesNo + MsgBoxStyle.DefaultButton1, "Confirm") = MsgBoxResult.No Then
				Exit Sub
			End If
		End If
		
		If ImageKit1.File.OpenFileDialog = False Then
			Exit Sub
		End If
		
		Form2.DefInstance.Show()
		ImageKit1.File.LoadFile(IMAGEKIT7Lib.LoadFileConstants.ikLoad)
		Form2.DefInstance.Close()
		
		ImageKit1.Display(ShowMode)
	End Sub
	
	'save
	Private Sub Command2_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command2.Click
		If ImageKit1.ImageHandle = 0 Or ImageKit1.ImageKind = IMAGEKIT7Lib.ImageKindConstants.ikErrorImage Then
			Exit Sub
		End If
		
		If ImageKit1.File.SaveFileDialog = False Then
			Exit Sub
		End If
		
		SaveType = -1
		
		If ImageKit1.ImageKind = IMAGEKIT7Lib.ImageKindConstants.ikRasterImage Then
			Form3.DefInstance.ShowDialog()
		Else
			Form4.DefInstance.ShowDialog()
		End If
		
		If SaveType >= 0 Then
			Form2.DefInstance.Show()
			ImageKit1.File.SaveFile(SaveType, 0)
			Form2.DefInstance.Close()
		End If
	End Sub
	
	Private Sub Command3_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command3.Click
		Me.Close()
	End Sub
	
	Private Sub Command4_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command4.Click
		ImageKit1.PanWindow.Caption = Text2.Text
	End Sub
	
	Private Sub Command5_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command5.Click
		If (ImageKit1.Edit.EditStatus <> False) Then
			If MsgBox("You are editing. Are you sure you want to load an image?", MsgBoxStyle.Question + MsgBoxStyle.YesNo + MsgBoxStyle.DefaultButton1, "Confirm") = MsgBoxResult.No Then
				Exit Sub
			End If
		End If
		
		ImageKit1.Picture = Picture1.Image
		ImageKit1.Display(ShowMode)
	End Sub
	
	Private Sub Command6_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command6.Click
		Picture2.Image = ImageKit1.Picture
	End Sub
	
	Private Sub Command7_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command7.Click
		If ImageKit1.ImageHandle = 0 Or ImageKit1.ImageKind = IMAGEKIT7Lib.ImageKindConstants.ikErrorImage Then
			Exit Sub
		End If
		
		ImageKit1.Edit.EditEnable = True ' enable editing
		
		If ImageKit1.ImageKind = IMAGEKIT7Lib.ImageKindConstants.ikRasterImage Then
			
			
			ImageKit1.Edit.ToolBarMouseCursorFile = VB6.GetPath & "\" & "DRAGMOVE.CUR"
			
			ImageKit1.Edit.ToolBarTop = 50 ' set the display position of the Image editing toolbar
			ImageKit1.Edit.ToolBarLeft = 100
			ImageKit1.Edit.ToolBarCloseBox = True '  set the close button for the image editing toolbar
			ImageKit1.Edit.ToolBarCaption = "ToolBar" ' set the caption for the image editing toolbar
			
			ImageKit1.Edit.AirBrushSize5 = 50 ' set the 5th step for the size of the airbrush
			ImageKit1.Edit.ForeColor = System.Convert.ToUInt32(&HFF) ' foreground color
			ImageKit1.Edit.BackColor = System.Convert.ToUInt32(&HFFC0FF) ' background color
			ImageKit1.Edit.FontName = "Arial" ' set the font
			ImageKit1.Edit.FontBold = True
			ImageKit1.Edit.FontItalic = True
			ImageKit1.Edit.FontSize = 36
			ImageKit1.Edit.FontStrikeOut = True
			ImageKit1.Edit.FontUnderline = True
            ImageKit1.Edit.StampBmpFile = Application.StartupPath & "\..\" & "Stamp.bmp" ' set the stamp bitmap
			ImageKit1.Edit.ShowToolBar(IMAGEKIT7Lib.EditToolBarModeConstants.ikRaster) ' display image editing toolbar
		Else
			ImageKit1.Edit.ShowToolBar(IMAGEKIT7Lib.EditToolBarModeConstants.ikVector)
		End If
	End Sub
	
	Private Sub Command8_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command8.Click
		ImageKit1.Edit.Modify()
		ImageKit1.Edit.ShowToolBar(IMAGEKIT7Lib.EditToolBarModeConstants.ikHide) 'hide image editing toolbar
	End Sub
	
	Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
		Coordinate = IMAGEKIT7Lib.UnitConstants.ikPixel
		ShowMode = IMAGEKIT7Lib.DispModeConstants.ikScale
		
		Option1(0).Checked = True ' Display mode
		Option2(0).Checked = True ' Display units
	End Sub
	
	Private Sub Form1_Closed(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Closed
		Picture2.Image = Nothing
	End Sub
	
	Private Sub ImageKit1_GetDragDropFileName(ByVal eventSender As System.Object, ByVal eventArgs As AxIMAGEKIT7Lib._IImageKitEvents_GetDragDropFileNameEvent) Handles ImageKit1.GetDragDropFileName
		Dim ret As Boolean
		Form2.DefInstance.Show()
        ImageKit1.File.FileName = eventArgs.fileName
		ImageKit1.File.LoadPage = eventArgs.Page
		ImageKit1.File.LoadFile(IMAGEKIT7Lib.LoadFileConstants.ikLoad)
		Form2.DefInstance.Close()
		
		ImageKit1.Display(ShowMode)
	End Sub
	
	Private Sub ImageKit1_Progress(ByVal eventSender As System.Object, ByVal eventArgs As AxIMAGEKIT7Lib._IImageKitEvents_ProgressEvent) Handles ImageKit1.Progress
		Form2.DefInstance.Label1.Text = CStr(eventArgs.Percent)
		Form2.DefInstance.Label1.Refresh()
		System.Windows.Forms.Application.DoEvents()
	End Sub
	
	Private Sub Option1_CheckedChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Option1.CheckedChanged
		If eventSender.Checked Then
			Dim Index As Short = Option1.GetIndex(eventSender)
			If Index = 0 Then
				ShowMode = IMAGEKIT7Lib.DispModeConstants.ikScale
			End If
			If Index = 1 Then
				ShowMode = IMAGEKIT7Lib.DispModeConstants.ikStretch
			End If
			If Index = 2 Then
				ShowMode = IMAGEKIT7Lib.DispModeConstants.ikActualSize
			End If
			
			ImageKit1.Display(ShowMode)
		End If
	End Sub
	
	Private Sub Option2_CheckedChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Option2.CheckedChanged
		If eventSender.Checked Then
			Dim Index As Short = Option2.GetIndex(eventSender)
			Coordinate = Index + 1
		End If
	End Sub
	
	Private Sub Option3_CheckedChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Option3.CheckedChanged
		If eventSender.Checked Then
			Dim Index As Short = Option3.GetIndex(eventSender)
			ImageKit1.Appearance = Index
		End If
	End Sub
End Class