i want to add bakground sound to my application that i am doing as a project for my class.
does anyone know the code for that?
:mrgreen:
tupadjia 0 Newbie Poster
Recommended Answers
Jump to Post— waynespangler 63If you are using vb express 2005 do this:
Dim done As Boolean = False Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If done Then Exit Sub done = True My.Computer.Audio.Play("c:\windows\media\Windows XP Logoff Sound.wav", AudioPlayMode.BackgroundLoop) MessageBox.Show("Now playing Windows XP Logoff Sound.wav") End …
Jump to Post— waynespangler 63I think that is good only for avi and wav sound files. You will have to use windows media player for others. Here is a link that should help.
Jump to Post— waynespangler 63Are you using vb net 2002 or 2003? If so they don't have the My keyword. That is only in vb express 2005. I don't know the code for them. Maybe you can do a Google search for "vb net playsound".
All 10 Replies
waynespangler 63 Posting Pro in Training
tupadjia 0 Newbie Poster
waynespangler 63 Posting Pro in Training
**UM HASSAN** 0 Newbie Poster
ChadW 0 Light Poster
**UM HASSAN** 0 Newbie Poster
ChadW 0 Light Poster
**UM HASSAN** 0 Newbie Poster
waynespangler 63 Posting Pro in Training
**UM HASSAN** 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.