I need help making some key that if the "a" key is pressed it plays a sound.
All the tutorials ive seen confuse me so maybe you can help. I've tried a few things but am still confused.
Thanks!
I need help making some key that if the "a" key is pressed it plays a sound.
All the tutorials ive seen confuse me so maybe you can help. I've tried a few things but am still confused.
Thanks!
first of all you need to set KeyPreview to True in the Form Properties.
Then you need to click on KeyDown in Event and then in there you do
if (e.KeyCode == Keys.A)
{
PlaySound();
}
If solved please mark as solved,
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.