⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mp3play.vb

📁 这是一本用Visual Studio.NET进行多媒体编程的读物
💻 VB
📖 第 1 页 / 共 4 页
字号:
Option Strict Off
Option Explicit On
Friend Class Form1
	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
    Private components As System.ComponentModel.IContainer
	'Windows 窗体设计器所必需的
		Public ToolTip1 As System.Windows.Forms.ToolTip
	Public WithEvents Mp3Play1 As AxMPEGPLAYLib.AxMp3Play
	Public WithEvents Text26 As System.Windows.Forms.TextBox
	Public WithEvents Command14 As System.Windows.Forms.Button
	Public WithEvents Frame15 As System.Windows.Forms.GroupBox
	Public WithEvents Text25 As System.Windows.Forms.TextBox
	Public WithEvents Command12 As System.Windows.Forms.Button
	Public WithEvents Text24 As System.Windows.Forms.TextBox
	Public WithEvents Text23 As System.Windows.Forms.TextBox
	Public WithEvents Frame14 As System.Windows.Forms.GroupBox
	Public WithEvents Text27 As System.Windows.Forms.TextBox
	Public WithEvents HScroll1 As System.Windows.Forms.HScrollBar
	Public WithEvents Command11 As System.Windows.Forms.Button
	Public WithEvents Frame13 As System.Windows.Forms.GroupBox
	Public WithEvents Text22 As System.Windows.Forms.TextBox
	Public WithEvents Frame12 As System.Windows.Forms.GroupBox
	Public WithEvents Text21 As System.Windows.Forms.TextBox
	Public WithEvents Command10 As System.Windows.Forms.Button
	Public WithEvents Frame11 As System.Windows.Forms.GroupBox
	Public WithEvents Text20 As System.Windows.Forms.TextBox
	Public WithEvents Command9 As System.Windows.Forms.Button
	Public WithEvents Command8 As System.Windows.Forms.Button
	Public WithEvents Command7 As System.Windows.Forms.Button
	Public WithEvents Command6 As System.Windows.Forms.Button
	Public WithEvents Frame10 As System.Windows.Forms.GroupBox
	Public WithEvents Text19 As System.Windows.Forms.TextBox
	Public WithEvents Frame9 As System.Windows.Forms.GroupBox
	Public WithEvents Shape1 As System.Windows.Forms.Label
	Public WithEvents Frame8 As System.Windows.Forms.GroupBox
	Public WithEvents Text18 As System.Windows.Forms.TextBox
	Public WithEvents Text17 As System.Windows.Forms.TextBox
	Public WithEvents Text16 As System.Windows.Forms.TextBox
	Public WithEvents Text15 As System.Windows.Forms.TextBox
	Public WithEvents Text14 As System.Windows.Forms.TextBox
	Public WithEvents Command5 As System.Windows.Forms.Button
	Public WithEvents Text13 As System.Windows.Forms.TextBox
	Public WithEvents Text12 As System.Windows.Forms.TextBox
	Public WithEvents Text11 As System.Windows.Forms.TextBox
	Public WithEvents Text10 As System.Windows.Forms.TextBox
	Public WithEvents Text9 As System.Windows.Forms.TextBox
	Public WithEvents Text8 As System.Windows.Forms.TextBox
	Public WithEvents Text7 As System.Windows.Forms.TextBox
	Public WithEvents Frame7 As System.Windows.Forms.GroupBox
	Public WithEvents Text6 As System.Windows.Forms.TextBox
	Public WithEvents Frame6 As System.Windows.Forms.GroupBox
	Public WithEvents Text5 As System.Windows.Forms.TextBox
	Public WithEvents Command2 As System.Windows.Forms.Button
	Public WithEvents Frame5 As System.Windows.Forms.GroupBox
	Public WithEvents Text4 As System.Windows.Forms.TextBox
	Public WithEvents Command4 As System.Windows.Forms.Button
	Public WithEvents Frame4 As System.Windows.Forms.GroupBox
	Public WithEvents Text3 As System.Windows.Forms.TextBox
	Public WithEvents Command1 As System.Windows.Forms.Button
	Public WithEvents Frame3 As System.Windows.Forms.GroupBox
	Public WithEvents Text2 As System.Windows.Forms.TextBox
	Public WithEvents Command3 As System.Windows.Forms.Button
	Public WithEvents Frame2 As System.Windows.Forms.GroupBox
	Public WithEvents Command13 As System.Windows.Forms.Button
	Public WithEvents Text1 As System.Windows.Forms.TextBox
	Public WithEvents Frame1 As System.Windows.Forms.GroupBox
	'注意:以下过程是 Windows 窗体设计器所必需的
	'可以使用 Windows 窗体设计器来修改它。
	'不要使用代码编辑器来修改它。
	<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.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components)
        Me.Text22 = New System.Windows.Forms.TextBox()
        Me.Mp3Play1 = New AxMPEGPLAYLib.AxMp3Play()
        Me.Frame15 = New System.Windows.Forms.GroupBox()
        Me.Text26 = New System.Windows.Forms.TextBox()
        Me.Command14 = New System.Windows.Forms.Button()
        Me.Frame14 = New System.Windows.Forms.GroupBox()
        Me.Text25 = New System.Windows.Forms.TextBox()
        Me.Command12 = New System.Windows.Forms.Button()
        Me.Text24 = New System.Windows.Forms.TextBox()
        Me.Text23 = New System.Windows.Forms.TextBox()
        Me.Frame13 = New System.Windows.Forms.GroupBox()
        Me.Text27 = New System.Windows.Forms.TextBox()
        Me.HScroll1 = New System.Windows.Forms.HScrollBar()
        Me.Command11 = New System.Windows.Forms.Button()
        Me.Frame12 = New System.Windows.Forms.GroupBox()
        Me.Frame11 = New System.Windows.Forms.GroupBox()
        Me.Text21 = New System.Windows.Forms.TextBox()
        Me.Command10 = New System.Windows.Forms.Button()
        Me.Frame10 = New System.Windows.Forms.GroupBox()
        Me.Text20 = New System.Windows.Forms.TextBox()
        Me.Command9 = New System.Windows.Forms.Button()
        Me.Command8 = New System.Windows.Forms.Button()
        Me.Command7 = New System.Windows.Forms.Button()
        Me.Command6 = New System.Windows.Forms.Button()
        Me.Frame9 = New System.Windows.Forms.GroupBox()
        Me.Text19 = New System.Windows.Forms.TextBox()
        Me.Frame8 = New System.Windows.Forms.GroupBox()
        Me.Shape1 = New System.Windows.Forms.Label()
        Me.Frame7 = New System.Windows.Forms.GroupBox()
        Me.Text18 = New System.Windows.Forms.TextBox()
        Me.Text17 = New System.Windows.Forms.TextBox()
        Me.Text16 = New System.Windows.Forms.TextBox()
        Me.Text15 = New System.Windows.Forms.TextBox()
        Me.Text14 = New System.Windows.Forms.TextBox()
        Me.Command5 = New System.Windows.Forms.Button()
        Me.Text13 = New System.Windows.Forms.TextBox()
        Me.Text12 = New System.Windows.Forms.TextBox()
        Me.Text11 = New System.Windows.Forms.TextBox()
        Me.Text10 = New System.Windows.Forms.TextBox()
        Me.Text9 = New System.Windows.Forms.TextBox()
        Me.Text8 = New System.Windows.Forms.TextBox()
        Me.Text7 = New System.Windows.Forms.TextBox()
        Me.Frame6 = New System.Windows.Forms.GroupBox()
        Me.Text6 = New System.Windows.Forms.TextBox()
        Me.Frame5 = New System.Windows.Forms.GroupBox()
        Me.Text5 = New System.Windows.Forms.TextBox()
        Me.Command2 = New System.Windows.Forms.Button()
        Me.Frame4 = New System.Windows.Forms.GroupBox()
        Me.Text4 = New System.Windows.Forms.TextBox()
        Me.Command4 = New System.Windows.Forms.Button()
        Me.Frame3 = New System.Windows.Forms.GroupBox()
        Me.Text3 = New System.Windows.Forms.TextBox()
        Me.Command1 = New System.Windows.Forms.Button()
        Me.Frame2 = New System.Windows.Forms.GroupBox()
        Me.Text2 = New System.Windows.Forms.TextBox()
        Me.Command3 = New System.Windows.Forms.Button()
        Me.Frame1 = New System.Windows.Forms.GroupBox()
        Me.Command13 = New System.Windows.Forms.Button()
        Me.Text1 = New System.Windows.Forms.TextBox()
        CType(Me.Mp3Play1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.Frame15.SuspendLayout()
        Me.Frame14.SuspendLayout()
        Me.Frame13.SuspendLayout()
        Me.Frame12.SuspendLayout()
        Me.Frame11.SuspendLayout()
        Me.Frame10.SuspendLayout()
        Me.Frame9.SuspendLayout()
        Me.Frame8.SuspendLayout()
        Me.Frame7.SuspendLayout()
        Me.Frame6.SuspendLayout()
        Me.Frame5.SuspendLayout()
        Me.Frame4.SuspendLayout()
        Me.Frame3.SuspendLayout()
        Me.Frame2.SuspendLayout()
        Me.Frame1.SuspendLayout()
        Me.SuspendLayout()
        '
        'Text22
        '
        Me.Text22.AcceptsReturn = True
        Me.Text22.AutoSize = False
        Me.Text22.BackColor = System.Drawing.SystemColors.Window
        Me.Text22.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.Text22.ForeColor = System.Drawing.SystemColors.WindowText
        Me.Text22.Location = New System.Drawing.Point(13, 21)
        Me.Text22.MaxLength = 0
        Me.Text22.Name = "Text22"
        Me.Text22.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Text22.Size = New System.Drawing.Size(191, 23)
        Me.Text22.TabIndex = 43
        Me.Text22.Text = "e:\song\01.mp3"
        Me.ToolTip1.SetToolTip(Me.Text22, "Enter here the mp3 filename")
        '
        'Mp3Play1
        '
        Me.Mp3Play1.Enabled = True
        Me.Mp3Play1.Location = New System.Drawing.Point(740, 268)
        Me.Mp3Play1.Name = "Mp3Play1"
        Me.Mp3Play1.OcxState = CType(resources.GetObject("Mp3Play1.OcxState"), System.Windows.Forms.AxHost.State)
        Me.Mp3Play1.Size = New System.Drawing.Size(127, 103)
        Me.Mp3Play1.TabIndex = 54
        '
        'Frame15
        '
        Me.Frame15.BackColor = System.Drawing.SystemColors.Control
        Me.Frame15.Controls.AddRange(New System.Windows.Forms.Control() {Me.Text26, Me.Command14})
        Me.Frame15.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame15.Location = New System.Drawing.Point(-5, 231)
        Me.Frame15.Name = "Frame15"
        Me.Frame15.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame15.Size = New System.Drawing.Size(162, 55)
        Me.Frame15.TabIndex = 51
        Me.Frame15.TabStop = False
        Me.Frame15.Text = "Pause Result"
        '
        'Text26
        '
        Me.Text26.AcceptsReturn = True
        Me.Text26.AutoSize = False
        Me.Text26.BackColor = System.Drawing.SystemColors.Window
        Me.Text26.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.Text26.ForeColor = System.Drawing.SystemColors.WindowText
        Me.Text26.Location = New System.Drawing.Point(97, 21)
        Me.Text26.MaxLength = 0
        Me.Text26.Name = "Text26"
        Me.Text26.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Text26.Size = New System.Drawing.Size(51, 23)
        Me.Text26.TabIndex = 53
        Me.Text26.Text = ""
        '
        'Command14
        '
        Me.Command14.BackColor = System.Drawing.SystemColors.Control
        Me.Command14.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command14.Location = New System.Drawing.Point(15, 21)
        Me.Command14.Name = "Command14"
        Me.Command14.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command14.Size = New System.Drawing.Size(66, 22)
        Me.Command14.TabIndex = 52
        Me.Command14.Text = "Pause"
        '
        'Frame14
        '
        Me.Frame14.BackColor = System.Drawing.SystemColors.Control
        Me.Frame14.Controls.AddRange(New System.Windows.Forms.Control() {Me.Text25, Me.Command12, Me.Text24, Me.Text23})
        Me.Frame14.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame14.Location = New System.Drawing.Point(161, 0)
        Me.Frame14.Name = "Frame14"
        Me.Frame14.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame14.Size = New System.Drawing.Size(224, 91)
        Me.Frame14.TabIndex = 46
        Me.Frame14.TabStop = False
        Me.Frame14.Text = "Password Key"
        '
        'Text25
        '
        Me.Text25.AcceptsReturn = True
        Me.Text25.AutoSize = False
        Me.Text25.BackColor = System.Drawing.SystemColors.Window
        Me.Text25.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.Text25.ForeColor = System.Drawing.SystemColors.WindowText
        Me.Text25.Location = New System.Drawing.Point(128, 56)
        Me.Text25.MaxLength = 0
        Me.Text25.Name = "Text25"
        Me.Text25.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Text25.Size = New System.Drawing.Size(86, 23)
        Me.Text25.TabIndex = 50
        Me.Text25.Text = ""
        '
        'Command12
        '
        Me.Command12.BackColor = System.Drawing.SystemColors.Control
        Me.Command12.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command12.Location = New System.Drawing.Point(136, 23)
        Me.Command12.Name = "Command12"
        Me.Command12.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command12.Size = New System.Drawing.Size(65, 22)
        Me.Command12.TabIndex = 49
        Me.Command12.Text = "set"
        '
        'Text24
        '
        Me.Text24.AcceptsReturn = True
        Me.Text24.AutoSize = False
        Me.Text24.BackColor = System.Drawing.SystemColors.Window
        Me.Text24.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.Text24.ForeColor = System.Drawing.SystemColors.WindowText
        Me.Text24.Location = New System.Drawing.Point(15, 53)
        Me.Text24.MaxLength = 0
        Me.Text24.Name = "Text24"
        Me.Text24.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Text24.Size = New System.Drawing.Size(104, 23)
        Me.Text24.TabIndex = 48
        Me.Text24.Text = "KEYWORD"
        '
        'Text23
        '
        Me.Text23.AcceptsReturn = True
        Me.Text23.AutoSize = False
        Me.Text23.BackColor = System.Drawing.SystemColors.Window
        Me.Text23.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.Text23.ForeColor = System.Drawing.SystemColors.WindowText
        Me.Text23.Location = New System.Drawing.Point(15, 21)
        Me.Text23.MaxLength = 0
        Me.Text23.Name = "Text23"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -