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

📄 多媒体.frm

📁 此文件包含5至6个用VB语言写的小程序
💻 FRM
字号:
VERSION 5.00
Object = "{C1A8AF28-1257-101B-8FB0-0020AF039CA3}#1.1#0"; "MCI32.OCX"
Begin VB.Form 多媒体播放器 
   Caption         =   "Form1"
   ClientHeight    =   5505
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   7770
   LinkTopic       =   "Form1"
   ScaleHeight     =   5505
   ScaleWidth      =   7770
   StartUpPosition =   3  '窗口缺省
   Begin VB.FileListBox File1 
      Height          =   990
      Left            =   360
      Pattern         =   "*.mp3"
      TabIndex        =   3
      Top             =   2760
      Width           =   5775
   End
   Begin VB.DirListBox Dir1 
      Height          =   1140
      Left            =   360
      TabIndex        =   2
      Top             =   1320
      Width           =   5655
   End
   Begin VB.DriveListBox Drive1 
      Height          =   300
      Left            =   3120
      TabIndex        =   1
      Top             =   840
      Width           =   2055
   End
   Begin MCI.MMControl MMControl1 
      Height          =   495
      Left            =   240
      TabIndex        =   0
      Top             =   120
      Width           =   3540
      _ExtentX        =   6244
      _ExtentY        =   873
      _Version        =   393216
      DeviceType      =   ""
      FileName        =   ""
   End
End
Attribute VB_Name = "多媒体播放器"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub Dir1_Change() '目录列表框的选择结果传给文件列表框
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change() '驱动器列表框的选择结果传给目录列表框
 Dir1.Path = Drive1.Drive
End Sub

Private Sub File1_Click()
Dim sfile As String
If Right(Dir1.Path, 1) = "\" Then
sfile = Dir1.Path + File1.FileName
Else
sfile = Dir1.Path + "\" + File1.FileName
'把选中文件的路径和文件名赋给变量sfile
End If
MMControl1.Command = "close"
MMControl1.FileName = sfile
MMControl1.Command = "Open"
'打开选中的文件
MMControl1.Notify = True
End Sub

Private Sub Form_Load()
MMControl1.DeviceType = "MPEGVideo"
'设置MMControl可以播放的媒体格式。
End Sub

⌨️ 快捷键说明

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