Solved

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

Posted on 2010-11-23
4
257 Views
Last Modified: 2012-05-10

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
Comment
Question by:SweetsJamRock
  • 2
  • 2
4 Comments
 
LVL 20

Expert Comment

by:BuggyCoder
ID: 34198852
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
 

Author Comment

by:SweetsJamRock
ID: 34202291
BuggyCoder,

  i am not building a web page.  this is a C# program and form.  those link did not help
0
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 500 total points
ID: 34202589
0
 

Author Closing Comment

by:SweetsJamRock
ID: 34222918
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now