Reputation: 24539
I have a button called 'btnLogin' on my form, and want to play a 'beep' sound when this button is pressed.
I have already attempted the 'Beep()' command, but this will only play through the motherboard, and not any external speakers.
How could i make this button command work?
Upvotes: 2
Views: 1473
Reputation: 989
Always use MSDN as a reference when trying to code things in .NET framework, they have a pretty extensive documentation with example and usual stuff you would need.
My.Computer.Audio.Play("c:\Windows\Media\chimes.wav")
Upvotes: 1