Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 286
  • Last Modified:

adding background sound to form + adding a picture to a picture box in C# when form already load


1)  I have a form that  displayed some graphics and i would like to add a background sound to the     form so that when the form is loaded it play a song  automatically and if i want to turn the sound off i would click a button.

2)  also be able to add any picture to a picture box that is on the form after the form is already loaded.


i was thinking that i would have to set this in the load form event, but not sure how to do this.
0
SweetsJamRock
Asked:
SweetsJamRock
  • 2
  • 2
1 Solution
 
BuggyCoderCommented:
Go through these links, i am sure they will help:-

http://www.vbdotnetheaven.com/UploadFile/scottlysle/PlaySoundsInASPX09032006083212AM/PlaySoundsInASPX.aspx

http://forums.asp.net/t/1299915.aspx

The second one is a discussion....

Hope it helps
:-)
0
 
SweetsJamRockAuthor Commented:
BuggyCoder,

  i am not building a web page.  this is a C# program and form.  those link did not help
0
 
BuggyCoderCommented:
0
 
SweetsJamRockAuthor Commented:
The concept is straight forward even though thats not where i wanted it to load from.  But the illustration is the ideal one for the problem.

i thank you for the solution bro.  sorry it took so long to respond, but my schedule is very tight and long

thanks again
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now