Hello, I'm working at a project and I want to add a MP3 song an play it when the program that i made will be started... any ideas?
petrelutza
0
Newbie Poster
Recommended Answers
Jump to PostHi,
Try this (in your form or a Module):
Private PlaySound As New System.Media.SoundPlayer Public Sub PlaySoundFile(ByVal SoundPath As String) PlaySound .SoundLocation = SoundPath PlaySound .Load() PlaySound .Play() End Sub
Then call it from the Form Load event (or wherever you like):
PlaySoundFile(<path …
All 4 Replies
Chris147
0
Junior Poster in Training
petrelutza
0
Newbie Poster
kvprajapati
1,826
Posting Genius
Team Colleague
petrelutza
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.