What is the code to add an audio track to play?
I need the file to play after a letter has been pressed so will be in the keypress function
Printable View
What is the code to add an audio track to play?
I need the file to play after a letter has been pressed so will be in the keypress function
You could use something like this:
Note that .NET only directly supports playing WAV files.Code:My.Computer.Audio.Play("c:\soundfile.wav",AudioPlayMode.Background)