My.computer.audio.play(LOCATION.NAME, background)
Try this, with the location of the sound. D:
I want my application to play a mp3 file when it loads. I already added the mp3 to the application.
then i tried:
andCode:My.computer.audio.play("song.mp3")
but neither want to work. any suggestions?Code:IDKyet.my.computer.audio.play("song.mp3")
Posts:
10 posts []
50 posts []
100 posts []
500 posts []
Thanks:
5 thanks []
10 thanks []
100 thanks []
Profile:
Make a signature []
Set a profile picture []
Hacks:
Download and use a hack []
Get a virus []
... or two... []
Release my own hacks []
My.computer.audio.play(LOCATION.NAME, background)
Try this, with the location of the sound. D:
Posts:
10 posts []
50 posts []
100 posts []
500 posts []
Thanks:
5 thanks []
10 thanks []
100 thanks []
Profile:
Make a signature []
Set a profile picture []
Hacks:
Download and use a hack []
Get a virus []
... or two... []
Release my own hacks []
Add music file to resources then add this codeCode:My.Computer.Audio.Play(My.Resources.song, AudioPlayMode.Background)
-Rest in peace leechers-
Your PM box is 100% full.
Posts:
10 posts []
50 posts []
100 posts []
500 posts []
Thanks:
5 thanks []
10 thanks []
100 thanks []
Profile:
Make a signature []
Set a profile picture []
Hacks:
Download and use a hack []
Get a virus []
... or two... []
Release my own hacks []
Add Audio then add that code i said!
-Rest in peace leechers-
Your PM box is 100% full.
Last edited by gwentravolta; 10-12-2009 at 01:48 PM.
Posts:
10 posts []
50 posts []
100 posts []
500 posts []
Thanks:
5 thanks []
10 thanks []
100 thanks []
Profile:
Make a signature []
Set a profile picture []
Hacks:
Download and use a hack []
Get a virus []
... or two... []
Release my own hacks []
Last edited by gwentravolta; 10-12-2009 at 01:53 PM.
Posts:
10 posts []
50 posts []
100 posts []
500 posts []
Thanks:
5 thanks []
10 thanks []
100 thanks []
Profile:
Make a signature []
Set a profile picture []
Hacks:
Download and use a hack []
Get a virus []
... or two... []
Release my own hacks []
Rename the file to a shorter name then edit he code...
-Rest in peace leechers-
Your PM box is 100% full.
Posts:
10 posts []
50 posts []
100 posts []
500 posts []
Thanks:
5 thanks []
10 thanks []
100 thanks []
Profile:
Make a signature []
Set a profile picture []
Hacks:
Download and use a hack []
Get a virus []
... or two... []
Release my own hacks []
Last edited by gwentravolta; 10-12-2009 at 02:05 PM.
Posts:
10 posts []
50 posts []
100 posts []
500 posts []
Thanks:
5 thanks []
10 thanks []
100 thanks []
Profile:
Make a signature []
Set a profile picture []
Hacks:
Download and use a hack []
Get a virus []
... or two... []
Release my own hacks []
If you want it to play when it loads, then either put it in a timer that's enabled, or put under Form1_Load
I would test this but my internet is about to go off...
If that's not what your talking about, then here:
Try using .mp4 or .wav
If I remember, I will post a tutorial on making a video converter when I get my internet back.
Last edited by Pixie; 10-12-2009 at 03:43 PM.