|
-
Dec 2nd, 2011, 11:49 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Play Wav from Resources
Hello, how i can play an wav song from my Resources
In my Resources folder is:
Resources>songs>female>welcomef.wav
For example this wav to play
how to make it to play when form loads?
-
Dec 2nd, 2011, 12:12 PM
#2
Re: [RESOLVED] Play Wav from Resources
This thread is marked resolve with no posted resolution.
Is it resolved?
If you did figure out a solution to your issue, please post it. It could help others with the same, or similiar, problem.
Thanks.
-
Dec 2nd, 2011, 12:12 PM
#3
Re: [RESOLVED] Play Wav from Resources
If you just need something simple:
Code:
Public Class Form1
Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)
MyBase.OnLoad(e)
My.Computer.Audio.Play(My.Resources.MyAudioFile,
AudioPlayMode.Background)
End Sub
End Class
-
Dec 2nd, 2011, 12:42 PM
#4
Re: [RESOLVED] Play Wav from Resources
 Originally Posted by ForumAccount
If you just need something simple:
Code:
Public Class Form1
Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)
MyBase.OnLoad(e)
My.Computer.Audio.Play(My.Resources.MyAudioFile,
AudioPlayMode.Background)
End Sub
End Class
Doesn't that only play ?PCA? WAV files?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|