| |

VerySource

 Forgot password?
 Register
Search
View: 756|Reply: 4

KeyDown event sound problem.

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-13 09:00:01
| Show all posts |Read mode
The KeyPreview is set to true, and then the SendKey method is written in the KeyDown event of the form. After pressing Enter, Send is the "TAB" key.
The function is implemented. No problem. My problem is that every time I hit enter, the computer will make a "dang" sound. How can I remove this sound?
Reply

Use magic Report

0

Threads

32

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-4-12 00:00:01
| Show all posts
beep?
Seeking to remove the beep sound in the system settings.
Reply

Use magic Report

0

Threads

32

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-5-2 16:45:01
| Show all posts
That sound doesn't seem to come out through the speaker.
It is said that there is a small sound device on the motherboard, see the Beep, MessageBeep function of Win32 api.
Reply

Use magic Report

0

Threads

26

Posts

21.00

Credits

Newbie

Rank: 1

Credits
21.00

 China

Post time: 2020-5-3 18:15:01
| Show all posts
There is always a small speaker on the motherboard. This kind of default sound is to be turned off by default in the control panel of the operating system-> Sound Multimedia.
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-7-19 19:30:01
| Show all posts
It is not so exaggerated, I have resolved it myself.
It can be solved with code.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list