📄 selectfile.vb
字号:
Option Strict Off
Option Explicit On
Imports VB = Microsoft.VisualBasic
Friend Class SelectFile
Inherits System.Windows.Forms.Form
#Region "Windows 窗体设计器生成的代码"
Public Sub New()
MyBase.New()
If m_vb6FormDefInstance Is Nothing Then
If m_InitializingDefInstance Then
m_vb6FormDefInstance = Me
Else
Try
'对于启动窗体,所创建的第一个实例为默认实例。
If System.Reflection.Assembly.GetExecutingAssembly.EntryPoint.DeclaringType Is Me.GetType Then
m_vb6FormDefInstance = Me
End If
Catch
End Try
End If
End If
'此调用是 Windows 窗体设计器所必需的。
InitializeComponent()
End Sub
'窗体重写处置,以清理组件列表。
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 窗体设计器所必需的
Private components As System.ComponentModel.IContainer
Public ToolTip1 As System.Windows.Forms.ToolTip
Public WithEvents picUP As System.Windows.Forms.PictureBox
Public WithEvents picDown As System.Windows.Forms.PictureBox
Public WithEvents Check2 As System.Windows.Forms.CheckBox
Public WithEvents Command3 As System.Windows.Forms.Button
Public WithEvents HScroll1 As System.Windows.Forms.HScrollBar
Public WithEvents VScroll1 As System.Windows.Forms.VScrollBar
Public WithEvents DisplayPicture As System.Windows.Forms.PictureBox
Public WithEvents Picture1 As System.Windows.Forms.Panel
Public WithEvents Check1 As System.Windows.Forms.CheckBox
Public WithEvents SelectType As System.Windows.Forms.ComboBox
Public WithEvents File1 As Microsoft.VisualBasic.Compatibility.VB6.FileListBox
Public WithEvents Command2 As System.Windows.Forms.Button
Public WithEvents Command1 As System.Windows.Forms.Button
Public WithEvents Drive1 As Microsoft.VisualBasic.Compatibility.VB6.DriveListBox
Public WithEvents Dir1 As Microsoft.VisualBasic.Compatibility.VB6.DirListBox
Public WithEvents Text1 As System.Windows.Forms.TextBox
Public WithEvents Line9 As System.Windows.Forms.Label
Public WithEvents Line8 As System.Windows.Forms.Label
Public WithEvents Line7 As System.Windows.Forms.Label
Public WithEvents Line6 As System.Windows.Forms.Label
Public WithEvents _Line5_1 As System.Windows.Forms.Label
Public WithEvents _Line5_0 As System.Windows.Forms.Label
Public WithEvents _Line4_1 As System.Windows.Forms.Label
Public WithEvents _Line4_0 As System.Windows.Forms.Label
Public WithEvents _Line3_2 As System.Windows.Forms.Label
Public WithEvents _Line2_2 As System.Windows.Forms.Label
Public WithEvents _Line2_0 As System.Windows.Forms.Label
Public WithEvents _Line1_0 As System.Windows.Forms.Label
Public WithEvents _Line1_1 As System.Windows.Forms.Label
Public WithEvents _Line1_2 As System.Windows.Forms.Label
Public WithEvents _Line1_3 As System.Windows.Forms.Label
Public WithEvents _Line3_0 As System.Windows.Forms.Label
Public WithEvents _Line2_1 As System.Windows.Forms.Label
Public WithEvents _Line3_1 As System.Windows.Forms.Label
Public WithEvents Label1 As System.Windows.Forms.Label
Public WithEvents Line1 As Microsoft.VisualBasic.Compatibility.VB6.LabelArray
Public WithEvents Line2 As Microsoft.VisualBasic.Compatibility.VB6.LabelArray
Public WithEvents Line3 As Microsoft.VisualBasic.Compatibility.VB6.LabelArray
Public WithEvents Line4 As Microsoft.VisualBasic.Compatibility.VB6.LabelArray
Public WithEvents Line5 As Microsoft.VisualBasic.Compatibility.VB6.LabelArray
Public WithEvents DelFile As System.Windows.Forms.MenuItem
Public WithEvents MenuEdit As System.Windows.Forms.MenuItem
Public MainMenu1 As System.Windows.Forms.MainMenu
'注意:以下过程是 Windows 窗体设计器所必需的
'可以使用 Windows 窗体设计器来修改它。
'不要使用代码编辑器来修改它。
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(SelectFile))
Me.components = New System.ComponentModel.Container()
Me.ToolTip1 = New System.Windows.Forms.ToolTip(components)
Me.ToolTip1.Active = True
Me.picUP = New System.Windows.Forms.PictureBox
Me.picDown = New System.Windows.Forms.PictureBox
Me.Check2 = New System.Windows.Forms.CheckBox
Me.Picture1 = New System.Windows.Forms.Panel
Me.Command3 = New System.Windows.Forms.Button
Me.HScroll1 = New System.Windows.Forms.HScrollBar
Me.VScroll1 = New System.Windows.Forms.VScrollBar
Me.DisplayPicture = New System.Windows.Forms.PictureBox
Me.Check1 = New System.Windows.Forms.CheckBox
Me.SelectType = New System.Windows.Forms.ComboBox
Me.File1 = New Microsoft.VisualBasic.Compatibility.VB6.FileListBox
Me.Command2 = New System.Windows.Forms.Button
Me.Command1 = New System.Windows.Forms.Button
Me.Drive1 = New Microsoft.VisualBasic.Compatibility.VB6.DriveListBox
Me.Dir1 = New Microsoft.VisualBasic.Compatibility.VB6.DirListBox
Me.Text1 = New System.Windows.Forms.TextBox
Me.Line9 = New System.Windows.Forms.Label
Me.Line8 = New System.Windows.Forms.Label
Me.Line7 = New System.Windows.Forms.Label
Me.Line6 = New System.Windows.Forms.Label
Me._Line5_1 = New System.Windows.Forms.Label
Me._Line5_0 = New System.Windows.Forms.Label
Me._Line4_1 = New System.Windows.Forms.Label
Me._Line4_0 = New System.Windows.Forms.Label
Me._Line3_2 = New System.Windows.Forms.Label
Me._Line2_2 = New System.Windows.Forms.Label
Me._Line2_0 = New System.Windows.Forms.Label
Me._Line1_0 = New System.Windows.Forms.Label
Me._Line1_1 = New System.Windows.Forms.Label
Me._Line1_2 = New System.Windows.Forms.Label
Me._Line1_3 = New System.Windows.Forms.Label
Me._Line3_0 = New System.Windows.Forms.Label
Me._Line2_1 = New System.Windows.Forms.Label
Me._Line3_1 = New System.Windows.Forms.Label
Me.Label1 = New System.Windows.Forms.Label
Me.Line1 = New Microsoft.VisualBasic.Compatibility.VB6.LabelArray(components)
Me.Line2 = New Microsoft.VisualBasic.Compatibility.VB6.LabelArray(components)
Me.Line3 = New Microsoft.VisualBasic.Compatibility.VB6.LabelArray(components)
Me.Line4 = New Microsoft.VisualBasic.Compatibility.VB6.LabelArray(components)
Me.Line5 = New Microsoft.VisualBasic.Compatibility.VB6.LabelArray(components)
Me.MainMenu1 = New System.Windows.Forms.MainMenu
Me.MenuEdit = New System.Windows.Forms.MenuItem
Me.DelFile = New System.Windows.Forms.MenuItem
CType(Me.Line1, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.Line2, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.Line3, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.Line4, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.Line5, System.ComponentModel.ISupportInitialize).BeginInit()
Me.StartPosition = System.Windows.Forms.FormStartPosition.Manual
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
Me.Text = "选择图片文件"
Me.ClientSize = New System.Drawing.Size(559, 267)
Me.Location = New System.Drawing.Point(3, 41)
Me.Icon = CType(resources.GetObject("SelectFile.Icon"), System.Drawing.Icon)
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.ShowInTaskbar = False
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.BackColor = System.Drawing.SystemColors.Control
Me.ControlBox = True
Me.Enabled = True
Me.KeyPreview = False
Me.Cursor = System.Windows.Forms.Cursors.Default
Me.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.HelpButton = False
Me.WindowState = System.Windows.Forms.FormWindowState.Normal
Me.Name = "SelectFile"
Me.picUP.Size = New System.Drawing.Size(36, 36)
Me.picUP.Location = New System.Drawing.Point(-87, 6)
Me.picUP.Image = CType(resources.GetObject("picUP.Image"), System.Drawing.Image)
Me.picUP.TabIndex = 15
Me.picUP.Visible = False
Me.picUP.Dock = System.Windows.Forms.DockStyle.None
Me.picUP.BackColor = System.Drawing.SystemColors.Control
Me.picUP.CausesValidation = True
Me.picUP.Enabled = True
Me.picUP.ForeColor = System.Drawing.SystemColors.ControlText
Me.picUP.Cursor = System.Windows.Forms.Cursors.Default
Me.picUP.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.picUP.TabStop = True
Me.picUP.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize
Me.picUP.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
Me.picUP.Name = "picUP"
Me.picDown.Size = New System.Drawing.Size(36, 36)
Me.picDown.Location = New System.Drawing.Point(-39, 6)
Me.picDown.Image = CType(resources.GetObject("picDown.Image"), System.Drawing.Image)
Me.picDown.TabIndex = 14
Me.picDown.Visible = False
Me.picDown.Dock = System.Windows.Forms.DockStyle.None
Me.picDown.BackColor = System.Drawing.SystemColors.Control
Me.picDown.CausesValidation = True
Me.picDown.Enabled = True
Me.picDown.ForeColor = System.Drawing.SystemColors.ControlText
Me.picDown.Cursor = System.Windows.Forms.Cursors.Default
Me.picDown.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.picDown.TabStop = True
Me.picDown.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize
Me.picDown.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
Me.picDown.Name = "picDown"
Me.Check2.BackColor = System.Drawing.Color.FromARGB(192, 192, 192)
Me.Check2.Text = "自动大小"
Me.Check2.Enabled = False
Me.Check2.ForeColor = System.Drawing.Color.FromARGB(0, 64, 64)
Me.Check2.Size = New System.Drawing.Size(71, 16)
Me.Check2.Location = New System.Drawing.Point(97, 209)
Me.Check2.TabIndex = 8
Me.Check2.CheckAlign = System.Drawing.ContentAlignment.MiddleLeft
Me.Check2.CausesValidation = True
Me.Check2.Cursor = System.Windows.Forms.Cursors.Default
Me.Check2.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Check2.Appearance = System.Windows.Forms.Appearance.Normal
Me.Check2.TabStop = True
Me.Check2.CheckState = System.Windows.Forms.CheckState.Unchecked
Me.Check2.Visible = True
Me.Check2.Name = "Check2"
Me.Picture1.Size = New System.Drawing.Size(195, 243)
Me.Picture1.Location = New System.Drawing.Point(355, 13)
Me.Picture1.TabIndex = 10
Me.Picture1.Dock = System.Windows.Forms.DockStyle.None
Me.Picture1.BackColor = System.Drawing.SystemColors.Control
Me.Picture1.CausesValidation = True
Me.Picture1.Enabled = True
Me.Picture1.ForeColor = System.Drawing.SystemColors.ControlText
Me.Picture1.Cursor = System.Windows.Forms.Cursors.Default
Me.Picture1.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Picture1.TabStop = True
Me.Picture1.Visible = True
Me.Picture1.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.Picture1.Name = "Picture1"
Me.Command3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
Me.Command3.Size = New System.Drawing.Size(19, 19)
Me.Command3.Location = New System.Drawing.Point(177, 225)
Me.Command3.TabIndex = 13
Me.Command3.Visible = False
Me.Command3.BackColor = System.Drawing.SystemColors.Control
Me.Command3.CausesValidation = True
Me.Command3.Enabled = True
Me.Command3.ForeColor = System.Drawing.SystemColors.ControlText
Me.Command3.Cursor = System.Windows.Forms.Cursors.Default
Me.Command3.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Command3.TabStop = True
Me.Command3.Name = "Command3"
Me.HScroll1.Size = New System.Drawing.Size(179, 18)
Me.HScroll1.LargeChange = 1000
Me.HScroll1.Location = New System.Drawing.Point(-1, 225)
Me.HScroll1.SmallChange = 100
Me.HScroll1.TabIndex = 12
Me.HScroll1.Visible = False
Me.HScroll1.CausesValidation = True
Me.HScroll1.Enabled = True
Me.HScroll1.Maximum = 33766
Me.HScroll1.Minimum = 0
Me.HScroll1.Cursor = System.Windows.Forms.Cursors.Default
Me.HScroll1.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.HScroll1.TabStop = True
Me.HScroll1.Value = 0
Me.HScroll1.Name = "HScroll1"
Me.VScroll1.Size = New System.Drawing.Size(18, 227)
Me.VScroll1.LargeChange = 1000
Me.VScroll1.Location = New System.Drawing.Point(177, -1)
Me.VScroll1.SmallChange = 100
Me.VScroll1.TabIndex = 11
Me.VScroll1.Visible = False
Me.VScroll1.CausesValidation = True
Me.VScroll1.Enabled = True
Me.VScroll1.Maximum = 33766
Me.VScroll1.Minimum = 0
Me.VScroll1.Cursor = System.Windows.Forms.Cursors.Default
Me.VScroll1.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.VScroll1.TabStop = True
Me.VScroll1.Value = 0
Me.VScroll1.Name = "VScroll1"
Me.DisplayPicture.Size = New System.Drawing.Size(192, 240)
Me.DisplayPicture.Location = New System.Drawing.Point(-1, -1)
Me.DisplayPicture.Enabled = True
Me.DisplayPicture.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Normal
Me.DisplayPicture.Visible = True
Me.DisplayPicture.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.DisplayPicture.Name = "DisplayPicture"
Me.Check1.Text = "预览图片"
Me.Check1.ForeColor = System.Drawing.Color.FromARGB(0, 64, 64)
Me.Check1.Size = New System.Drawing.Size(77, 20)
Me.Check1.Location = New System.Drawing.Point(13, 207)
Me.Check1.TabIndex = 7
Me.Check1.CheckAlign = System.Drawing.ContentAlignment.MiddleLeft
Me.Check1.BackColor = System.Drawing.SystemColors.Control
Me.Check1.CausesValidation = True
Me.Check1.Enabled = True
Me.Check1.Cursor = System.Windows.Forms.Cursors.Default
Me.Check1.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Check1.Appearance = System.Windows.Forms.Appearance.Normal
Me.Check1.TabStop = True
Me.Check1.CheckState = System.Windows.Forms.CheckState.Unchecked
Me.Check1.Visible = True
Me.Check1.Name = "Check1"
Me.SelectType.Size = New System.Drawing.Size(156, 20)
Me.SelectType.Location = New System.Drawing.Point(11, 235)
Me.SelectType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
Me.SelectType.TabIndex = 2
Me.SelectType.BackColor = System.Drawing.SystemColors.Window
Me.SelectType.CausesValidation = True
Me.SelectType.Enabled = True
Me.SelectType.ForeColor = System.Drawing.SystemColors.WindowText
Me.SelectType.IntegralHeight = True
Me.SelectType.Cursor = System.Windows.Forms.Cursors.Default
Me.SelectType.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.SelectType.Sorted = False
Me.SelectType.TabStop = True
Me.SelectType.Visible = True
Me.SelectType.Name = "SelectType"
Me.File1.Size = New System.Drawing.Size(156, 126)
Me.File1.Location = New System.Drawing.Point(11, 74)
Me.File1.TabIndex = 1
Me.File1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
Me.File1.Archive = True
Me.File1.BackColor = System.Drawing.SystemColors.Window
Me.File1.CausesValidation = True
Me.File1.Enabled = True
Me.File1.ForeColor = System.Drawing.SystemColors.WindowText
Me.File1.Hidden = False
Me.File1.Cursor = System.Windows.Forms.Cursors.Default
Me.File1.SelectionMode = System.Windows.Forms.SelectionMode.One
Me.File1.Normal = True
Me.File1.Pattern = "*.*"
Me.File1.ReadOnly = True
Me.File1.System = False
Me.File1.TabStop = True
Me.File1.TopIndex = 0
Me.File1.Visible = True
Me.File1.Name = "File1"
Me.Command2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
Me.CancelButton = Me.Command2
Me.Command2.Text = "取消(&C)"
Me.Command2.Size = New System.Drawing.Size(92, 26)
Me.Command2.Location = New System.Drawing.Point(228, 52)
Me.Command2.TabIndex = 6
Me.Command2.BackColor = System.Drawing.SystemColors.Control
Me.Command2.CausesValidation = True
Me.Command2.Enabled = True
Me.Command2.ForeColor = System.Drawing.SystemColors.ControlText
Me.Command2.Cursor = System.Windows.Forms.Cursors.Default
Me.Command2.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Command2.TabStop = True
Me.Command2.Name = "Command2"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -