how can i attach a Mp3 file to a vb progam and make it play when the vb program starts, im making a basic gc gen and i want it to seem like one of those key gens with the music that plays as soon as you open it...
how can i attach a Mp3 file to a vb progam and make it play when the vb program starts, im making a basic gc gen and i want it to seem like one of those key gens with the music that plays as soon as you open it...
OMG LOL
Not sure about mp3's, but atleast wav's do work with this code:
Play A Wav Sound (Using My.Resources)
The base .NET framework doesn't have support for playing MP3s. Only WAVs. You can add the Windows Media Player control onto your form and just hide it, but that would require the user to have WMP, which some/most do not. Just change it to a WAV and use j00nas link to make it play.
you can do as apoc said but insteed u can link a URL where thay allow Wav files to be played not just downloaded
Like: http://data.fuskbugg.se/skalman01/ddv.wav
that site might be only swedish so i suggest u find another
add a reference to windows media player, its under com.
Code:Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim mplayer As New WMPLib.WindowsMediaPlayer mplayer.URL = mysonglocation ; string. End Sub