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

📄 form2.frm

📁 MPbofang .MPbofang .MPbofang .MPbofang .MPbofang .
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form2 
   Caption         =   "播放列表"
   ClientHeight    =   5460
   ClientLeft      =   165
   ClientTop       =   450
   ClientWidth     =   6045
   LinkTopic       =   "Form2"
   Picture         =   "Form2.frx":0000
   ScaleHeight     =   5460
   ScaleWidth      =   6045
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command4 
      Caption         =   "首页"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   4440
      Picture         =   "Form2.frx":59AA2
      Style           =   1  'Graphical
      TabIndex        =   4
      Top             =   3600
      Width           =   1455
   End
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   4800
      Top             =   4680
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.CommandButton Command3 
      Caption         =   "播放"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   15.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   4440
      Picture         =   "Form2.frx":5A1CE
      Style           =   1  'Graphical
      TabIndex        =   3
      Top             =   2520
      Width           =   1455
   End
   Begin VB.CommandButton Command2 
      Caption         =   "删除"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   15
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   4440
      Picture         =   "Form2.frx":5A8FA
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   1440
      Width           =   1455
   End
   Begin VB.CommandButton Command1 
      Caption         =   "添加"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   15
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   4440
      Picture         =   "Form2.frx":5B026
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   360
      Width           =   1455
   End
   Begin VB.ListBox List1 
      Height          =   4920
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   3975
   End
   Begin VB.Image Image1 
      Height          =   5520
      Left            =   0
      Picture         =   "Form2.frx":5B752
      Top             =   0
      Width           =   7275
   End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim pa As String
Private Sub Command1_Click()
    Dim song As String
    CommonDialog1.FileName = ""
    CommonDialog1.Filter = "MP3 Files( *.mp4)| *.mp4|Wave Files( *.wav)|*.wav"
    CommonDialog1.Flags = 512
    CommonDialog1.ShowOpen
    song = CommonDialog1.FileName
    If song = "" Then Exit Sub
        a = ""
    For i = Len(song) To 1 Step -1
        k = Mid(song, i, 1)
    If k = " " Then
        List1.AddItem a
        a = ""
    ElseIf k = "\" Then '
        List1.AddItem a
        pa = Left(song, i)
    Else
        a = k & a
    End If
    Next i
End Sub

Private Sub Command2_Click()
    If List1.Text = "" Then
        MsgBox "请选择歌曲!"
    Else
        List1.RemoveItem (List1.ListIndex)
    End If
End Sub

Private Sub Command3_Click()
    Form1.Show
    Form2.Visible = False
End Sub

Private Sub Command4_Click()
    Form3.Show
    Form2.Visible = False
End Sub

⌨️ 快捷键说明

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