Click here to Skip to main content
15,665,000 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I 'm developping an application and i want to add sound when the mouse passes over a button i tried to do it this way but it didn't work:
C#
soundPlayer s=new soundPlayer(myfile.wav);
s.play();
Posted
Updated 30-Dec-11 2:58am

1 solution

C#
private void btnPlay_Enter(object sender, EventArgs e)
{
soundPlayer s=new soundPlayer(myfile.wav);
s.play();
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900