Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Playing Sounds

Posted on 2004-11-17
8
Medium Priority
?
183 Views
Last Modified: 2011-08-18
Is it possible that on the form load i can start an mp3 or any other sound to play? if so could you take me through how to do it
0
Comment
Question by:asherap
  • 4
  • 2
  • 2
8 Comments
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 12602210
0
 

Author Comment

by:asherap
ID: 12602811
sorry man its close to what i want but not quite. i want to know exactly how to get the sound to play on the load
the user doesnt have buttons to control on or off.
0
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 12602861
Well all the information is there, the only thing you have to do is set it in the load event of your form.


 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
         AxMediaPlayer1.AutoStart = False
         AxMediaPlayer1.FileName = "yoursoundfile"
         AxMediaPlayer1.play
 end sub
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:asherap
ID: 12603351
thanx very much for your help so far but is it possible to include a soundfile in the program. i have seen some keygenerators do it (not that i use them).

p.s i have upped the point value 100 points
0
 
LVL 27

Accepted Solution

by:
planocz earned 300 total points
ID: 12603525
0
 
LVL 25

Assisted Solution

by:RonaldBiemans
RonaldBiemans earned 300 total points
ID: 12603573
0
 
LVL 27

Expert Comment

by:planocz
ID: 12603608
Hi Ron
 I hope your day is starting well. Its raining here Dallas.
0
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 12604027
Hi planocz, not much better here (also raining but than again it always raining here). ;-)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Suggested Courses
Course of the Month10 days, 11 hours left to enroll

572 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