📄 cdplay.vb
字号:
Option Strict Off
Option Explicit On
Imports VB = Microsoft.VisualBasic
Friend Class frmMain
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.Container
Public ToolTip1 As System.Windows.Forms.ToolTip
Public WithEvents cmdVolume As System.Windows.Forms.Button
Public WithEvents Timer1 As System.Windows.Forms.Timer
Public WithEvents cmdNext As System.Windows.Forms.Button
Public WithEvents cmdPrev As System.Windows.Forms.Button
Public WithEvents cmdDoorClose As System.Windows.Forms.Button
Public WithEvents cmdEject As System.Windows.Forms.Button
Public WithEvents cmdPlay As System.Windows.Forms.Button
Public WithEvents cmdPause As System.Windows.Forms.Button
Public WithEvents cmdClose As System.Windows.Forms.Button
Public WithEvents cmdOpen As System.Windows.Forms.Button
Public WithEvents cmdReset As System.Windows.Forms.Button
Public WithEvents txtLength As System.Windows.Forms.TextBox
Public WithEvents txtCurrent As System.Windows.Forms.TextBox
Public WithEvents Label1 As System.Windows.Forms.Label
Public WithEvents Label2 As System.Windows.Forms.Label
'注意:以下过程是 Windows 窗体设计器所必需的
'可以使用 Windows 窗体设计器来修改它。
'不要使用代码编辑器来修改它。
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container()
Me.ToolTip1 = New System.Windows.Forms.ToolTip(components)
Me.ToolTip1.Active = True
Me.cmdVolume = New System.Windows.Forms.Button
Me.Timer1 = New System.Windows.Forms.Timer(components)
Me.cmdNext = New System.Windows.Forms.Button
Me.cmdPrev = New System.Windows.Forms.Button
Me.cmdDoorClose = New System.Windows.Forms.Button
Me.cmdEject = New System.Windows.Forms.Button
Me.cmdPlay = New System.Windows.Forms.Button
Me.cmdPause = New System.Windows.Forms.Button
Me.cmdClose = New System.Windows.Forms.Button
Me.cmdOpen = New System.Windows.Forms.Button
Me.cmdReset = New System.Windows.Forms.Button
Me.txtLength = New System.Windows.Forms.TextBox
Me.txtCurrent = New System.Windows.Forms.TextBox
Me.Label1 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.Text = "CD播放程序"
Me.ClientSize = New System.Drawing.Size(312, 163)
Me.Location = New System.Drawing.Point(4, 23)
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.BackColor = System.Drawing.SystemColors.Control
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable
Me.ControlBox = True
Me.Enabled = True
Me.KeyPreview = False
Me.MaximizeBox = True
Me.MinimizeBox = True
Me.Cursor = System.Windows.Forms.Cursors.Default
Me.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.ShowInTaskbar = True
Me.HelpButton = False
Me.WindowState = System.Windows.Forms.FormWindowState.Normal
Me.Name = "frmMain"
Me.cmdVolume.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
Me.cmdVolume.Text = "音量"
Me.cmdVolume.Size = New System.Drawing.Size(49, 25)
Me.cmdVolume.Location = New System.Drawing.Point(240, 112)
Me.cmdVolume.TabIndex = 13
Me.cmdVolume.BackColor = System.Drawing.SystemColors.Control
Me.cmdVolume.CausesValidation = True
Me.cmdVolume.Enabled = True
Me.cmdVolume.Cursor = System.Windows.Forms.Cursors.Default
Me.cmdVolume.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdVolume.TabStop = True
Me.cmdVolume.Name = "cmdVolume"
Me.Timer1.Interval = 10
Me.Timer1.Enabled = True
Me.cmdNext.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
Me.cmdNext.Text = "下一曲"
Me.cmdNext.Size = New System.Drawing.Size(49, 25)
Me.cmdNext.Location = New System.Drawing.Point(184, 112)
Me.cmdNext.TabIndex = 12
Me.cmdNext.BackColor = System.Drawing.SystemColors.Control
Me.cmdNext.CausesValidation = True
Me.cmdNext.Enabled = True
Me.cmdNext.Cursor = System.Windows.Forms.Cursors.Default
Me.cmdNext.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdNext.TabStop = True
Me.cmdNext.Name = "cmdNext"
Me.cmdPrev.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
Me.cmdPrev.Text = "上一曲"
Me.cmdPrev.Size = New System.Drawing.Size(49, 25)
Me.cmdPrev.Location = New System.Drawing.Point(128, 112)
Me.cmdPrev.TabIndex = 11
Me.cmdPrev.BackColor = System.Drawing.SystemColors.Control
Me.cmdPrev.CausesValidation = True
Me.cmdPrev.Enabled = True
Me.cmdPrev.Cursor = System.Windows.Forms.Cursors.Default
Me.cmdPrev.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdPrev.TabStop = True
Me.cmdPrev.Name = "cmdPrev"
Me.cmdDoorClose.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
Me.cmdDoorClose.Text = "关门"
Me.cmdDoorClose.Size = New System.Drawing.Size(49, 25)
Me.cmdDoorClose.Location = New System.Drawing.Point(72, 112)
Me.cmdDoorClose.TabIndex = 10
Me.cmdDoorClose.BackColor = System.Drawing.SystemColors.Control
Me.cmdDoorClose.CausesValidation = True
Me.cmdDoorClose.Enabled = True
Me.cmdDoorClose.Cursor = System.Windows.Forms.Cursors.Default
Me.cmdDoorClose.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdDoorClose.TabStop = True
Me.cmdDoorClose.Name = "cmdDoorClose"
Me.cmdEject.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
Me.cmdEject.Text = "退碟"
Me.cmdEject.Size = New System.Drawing.Size(49, 25)
Me.cmdEject.Location = New System.Drawing.Point(16, 112)
Me.cmdEject.TabIndex = 9
Me.cmdEject.BackColor = System.Drawing.SystemColors.Control
Me.cmdEject.CausesValidation = True
Me.cmdEject.Enabled = True
Me.cmdEject.Cursor = System.Windows.Forms.Cursors.Default
Me.cmdEject.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdEject.TabStop = True
Me.cmdEject.Name = "cmdEject"
Me.cmdPlay.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
Me.cmdPlay.Text = "播放"
Me.cmdPlay.Size = New System.Drawing.Size(49, 25)
Me.cmdPlay.Location = New System.Drawing.Point(72, 80)
Me.cmdPlay.TabIndex = 8
Me.cmdPlay.BackColor = System.Drawing.SystemColors.Control
Me.cmdPlay.CausesValidation = True
Me.cmdPlay.Enabled = True
Me.cmdPlay.Cursor = System.Windows.Forms.Cursors.Default
Me.cmdPlay.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdPlay.TabStop = True
Me.cmdPlay.Name = "cmdPlay"
Me.cmdPause.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
Me.cmdPause.Text = "暂停"
Me.cmdPause.Size = New System.Drawing.Size(49, 25)
Me.cmdPause.Location = New System.Drawing.Point(128, 80)
Me.cmdPause.TabIndex = 7
Me.cmdPause.BackColor = System.Drawing.SystemColors.Control
Me.cmdPause.CausesValidation = True
Me.cmdPause.Enabled = True
Me.cmdPause.Cursor = System.Windows.Forms.Cursors.Default
Me.cmdPause.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdPause.TabStop = True
Me.cmdPause.Name = "cmdPause"
Me.cmdClose.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
Me.cmdClose.Text = "关闭"
Me.cmdClose.Size = New System.Drawing.Size(49, 25)
Me.cmdClose.Location = New System.Drawing.Point(240, 80)
Me.cmdClose.TabIndex = 6
Me.cmdClose.BackColor = System.Drawing.SystemColors.Control
Me.cmdClose.CausesValidation = True
Me.cmdClose.Enabled = True
Me.cmdClose.Cursor = System.Windows.Forms.Cursors.Default
Me.cmdClose.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdClose.TabStop = True
Me.cmdClose.Name = "cmdClose"
Me.cmdOpen.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
Me.cmdOpen.Text = "开启"
Me.cmdOpen.Size = New System.Drawing.Size(49, 25)
Me.cmdOpen.Location = New System.Drawing.Point(16, 80)
Me.cmdOpen.TabIndex = 5
Me.cmdOpen.BackColor = System.Drawing.SystemColors.Control
Me.cmdOpen.CausesValidation = True
Me.cmdOpen.Enabled = True
Me.cmdOpen.Cursor = System.Windows.Forms.Cursors.Default
Me.cmdOpen.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdOpen.TabStop = True
Me.cmdOpen.Name = "cmdOpen"
Me.cmdReset.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
Me.cmdReset.Text = "重置"
Me.cmdReset.Size = New System.Drawing.Size(49, 25)
Me.cmdReset.Location = New System.Drawing.Point(184, 80)
Me.cmdReset.TabIndex = 4
Me.cmdReset.BackColor = System.Drawing.SystemColors.Control
Me.cmdReset.CausesValidation = True
Me.cmdReset.Enabled = True
Me.cmdReset.Cursor = System.Windows.Forms.Cursors.Default
Me.cmdReset.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdReset.TabStop = True
Me.cmdReset.Name = "cmdReset"
Me.txtLength.AutoSize = False
Me.txtLength.Size = New System.Drawing.Size(209, 18)
Me.txtLength.Location = New System.Drawing.Point(64, 16)
Me.txtLength.TabIndex = 1
Me.txtLength.AcceptsReturn = True
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -