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:
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:
soundPlayer s=new soundPlayer(myfile.wav);;
Updated 30-Dec-11 2:58am

1 solution

private void btnPlay_Enter(object sender, EventArgs e)
soundPlayer s=new soundPlayer(myfile.wav);;
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