HI FRIENDS,
i am yuvraj persuing g niit course i am now doing G U I (graphical user interphase) in this course
yesterday when i was doing my work on window form i saw a code in
my book to run a audio file on button click event after
browse the file,but i am not get it i copied all what that code
but it's showing error so i want that if anybody please
help me or let me know the right code.
THANK U
I AM
WAITING AND
I WANt iT AS
EaRLY aS
POSsSIble
GUI CODES
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Blocked AccountRank #403 · 6.2K reputationPosted Jan 2, 2008, 11:42 PM EST
Hi,
What type of error it's showing.
Happy Coding!!
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted Jan 9, 2008, 12:25 PM EST
Hi.first you add the window media player DLL in ur application through the ComReference.and under the button event u write this code.
protected void Button3_Click(object sender, EventArgs e){
WMPLib.
WindowsMediaPlayerClass wmp = new WindowsMediaPlayerClass();wmp.openPlayer(MapPath("Give ur Song Path here Example XYZ.mp3"
));}
cheers
niradhip