by Maximum (2 Submissions)
Category: Sound/MP3
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Sun 2nd June 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)
This code allows you to open any mp3 file
API Declarations
dim mp3 as string
'add this code to a button
private sub command1_click()
'filters the files to open
cd1.filter (*.Mp3|*.mp3)
'opens the open dialogue
cd1.showopen
'assigns the filename as mp3
mp3=cd1.filename
'assigns the variable to a textbox to open
text1.text=mp3
end sub