Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27569

VS 2010 Background WAV music

$
0
0
Hi

I want to try this but need help.

I have a form that when load plays a music in the back . Ok it works perfectly with the wav file in the resourses (named Applause) and this code

Code:

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        My.Computer.Audio.Play(My.Resources.Applause, AudioPlayMode.Background)
    End Sub

Problem: Is possible to have several (4 or 5 ) wav files in the resourses and load it ramdomly and play it ramdomly meanwhile the form is active?

I have no idea how to do that.

Thanks in advance

Carlos

Viewing all articles
Browse latest Browse all 27569

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>