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

📄 filesform.frm

📁 这个播放器是自己做的
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form19 
   BorderStyle     =   4  'Fixed ToolWindow
   Caption         =   "打开音乐文件"
   ClientHeight    =   3600
   ClientLeft      =   45
   ClientTop       =   315
   ClientWidth     =   2595
   LinkTopic       =   "Form19"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3600
   ScaleWidth      =   2595
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   375
      Left            =   1560
      TabIndex        =   3
      Top             =   3120
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   375
      Left            =   600
      TabIndex        =   2
      Top             =   3120
      Width           =   855
   End
   Begin VB.DirListBox Dir1 
      Height          =   2400
      Left            =   120
      TabIndex        =   1
      Top             =   600
      Width           =   2295
   End
   Begin VB.DriveListBox Drive1 
      Height          =   300
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   2295
   End
End
Attribute VB_Name = "Form19"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()

Dim i As Integer
Dim j As Integer
j = 0
With Form16
  .Mp3file = Dir1.Path
  .Mp3file.Pattern = "*.wav"
  For i = 0 To .Mp3file.ListCount - 1
    .ListView1.ListItems.Add , , .Mp3file.List(i)
    .ListView1.ListItems.Item(.ListView1.ListItems.Count).SubItems(1) = .Mp3file.Path & "\" & .Mp3file.List(i)
    j = j + 1
    DoEvents
  Next
  .Mp3file.Pattern = "*.mp3"
  For i = 0 To .Mp3file.ListCount - 1
    .ListView1.ListItems.Add , , .Mp3file.List(i)
    .ListView1.ListItems.Item(.ListView1.ListItems.Count).SubItems(1) = .Mp3file.Path & "\" & .Mp3file.List(i)
    j = j + 1
    DoEvents
  Next
  .Mp3file.Pattern = "*.wma"
  For i = 0 To .Mp3file.ListCount - 1
    .ListView1.ListItems.Add , , .Mp3file.List(i)
    .ListView1.ListItems.Item(.ListView1.ListItems.Count).SubItems(1) = .Mp3file.Path & "\" & .Mp3file.List(i)
    j = j + 1
    DoEvents
  Next
End With
If j > 1 Then
  Form11.Nextmig.Enabled = True
  Form11.Playmig.Enabled = True
End If
Unload Me

End Sub

Private Sub Command2_Click()

Unload Me

End Sub

Private Sub Drive1_Change()

Dir1.Path = Drive1.Drive

End Sub

⌨️ 快捷键说明

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