.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> WPF >> Post New Question Subscribe to Interview Questions

How to use MediaPlayer to play an audio file in WPF?

Posted By :Syed Shakeer Hussain     Posted Date :October 26, 2010    Points :10   Category :WPF 
MediaPlayer player = new MediaPlayer();

player.Open(new Uri("music.wma", UriKind.Relative));

player.Play();

You can also find related Interview Question to How to use MediaPlayer to play an audio file in WPF?  below: 

what is used to execute a .net file from the command prompt ?

  
csc is C# compiler abbreviation is C Sharp Compiler (More...)

Disadvantage in File Processing System?

  
1.Data redundancy & inconsistency.
2.Difficult in accessing data.
3.Data isolation.
4.Data integrity.
5.Concurrent access is not possible.
6.Security Problems. (More...)

How u can create XML file?

  
To write Dataset Contents out to disk as an XML file use:
MyDataset.WriteXML(server.MapPath("MyXMLFile.xml")) (More...)

what is the use of using web.config file

  
By using this web.config file we can store sqlconnection string.This SqlConnection String can be accessed any where in your application.for security purpose of connection string also we can use web.config. (More...)

Can we have more than one web.config file in our application?

  
Yes,we can create or use more than one web.config file in our application. (More...)

What is contained in the AppManifest.xaml file in silverlight?

  
The AppManifest.xaml file contains the deployment details needed to run the silverlight application.

Basic example:

(More...)

What are the files contained in the .xap file in Silverlight?

  
A basic xap file in silverlight will have an assembly related to specific code for the application, an application manifest file and any additional assemblies need to run the application. At a minimum, two files are needed, the application manifest file and the application assembly.

For example:

AppManifest.xaml

MyPianoV2.dll (More...)

How do I use a .xap file in silverlight?

  
A .xap file is used to contain and transfer the assemblies and resources of a managed code application. This managed code application must be run within the Silverlight 2 browser plug-in. (More...)

if we remove a web.config file from the application , is this application will work?

  
It Depends on coding if we used something that is required to pioc values from configuration file then its required otherwise we can run our application without web.config. (More...)

How to send XML file on server using HTTP protocol?

  
Using SOAP we can send XML file on Serevr (More...)

What is a PHP File?

  
1. PHP files can contain text, HTML tags and scripts.
2. PHP files are returned to the browser as plain HTML.
3. PHP files have a file extension of ".php", ".php3", or ".phtml". (More...)

Can i add more than 1 web.config file in a single application?

  
Yes, it is possible to add more than 1 web.config file in a single application. (More...)

Is it possible to add multiple Machine.config file?

  
No, it is not possible to add more than 1 machine.config file. if we want to overwrite any setting than that can be achieve with the help of web.config. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend