www.pudn.com > 把MP3转换为WAV文件格式 .zip > OpenMpX.frm
VERSION 5.00
Begin VB.Form OpenMpx
BorderStyle = 4 'Fixed ToolWindow
ClientHeight = 3900
ClientLeft = 45
ClientTop = 270
ClientWidth = 6810
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3900
ScaleWidth = 6810
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command1
Caption = "取消"
Height = 330
Left = 5535
TabIndex = 4
Top = 720
Width = 1140
End
Begin VB.CommandButton Dk
Caption = "打开"
Default = -1 'True
Height = 330
Left = 5535
TabIndex = 3
Top = 270
Width = 1140
End
Begin VB.FileListBox File1
Height = 3690
Left = 2835
Pattern = "*.mp?"
TabIndex = 2
Top = 90
Width = 2535
End
Begin VB.DirListBox Dir1
Height = 3240
Left = 180
TabIndex = 1
Top = 135
Width = 2535
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 180
TabIndex = 0
Top = 3465
Width = 2535
End
End
Attribute VB_Name = "OpenMpx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Dropdir As String
Private Sub Command1_Click()
Hide
End Sub
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Dk_Click()
If Me.Caption = "" Then
GoTo Box
Else
Mp3ToWav.PlaySong = Me.Caption
Mp3ToWav.MP.Close
Mp3ToWav.Command1(0).Enabled = True
Mp3ToWav.Command1(0) = True
Hide
End If
Box:
End Sub
Private Sub Drive1_Change()
On Error Resume Next
Dir1.Path = Drive1.Drive
End Sub
Private Sub File1_Click()
If Mid(Dir1.Path, Len(Dir1.Path)) = "\" Then
Dropdir = Dir1.Path
Else
Dropdir = Dir1.Path & "\"
End If
Command1.Enabled = True
Me.Caption = Dropdir & File1.filename
End Sub
Private Sub File1_DblClick()
Dk_Click
End Sub