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
Loading
Niradhip ChakrabortyPosted Jan 9, 2008, 5:25 PM
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
Blocked AccountPosted Jan 3, 2008, 4:42 AM
Hi,
What type of error it's showing.
Happy Coding!!