How do I disable the c# message box beep?

后端 未结 7 1063
攒了一身酷
攒了一身酷 2020-12-16 13:30

Whenever trigger a messagebox used in my C# program I get a very annoying beep from my computer. How do I disable this beep using C# code.

The code I am using is ve

7条回答
  •  没有蜡笔的小新
    2020-12-16 14:14

    This is going to sound weird until you have tried it. Open your command prompt, type:

    net stop beep
    

    I did a quick google and found 4 other ways:

    1. local machine: sc stop beep && sc config beep start= disabled
    2. remote machine: sc \remoteMachine stop beep && sc \remoteMachine config beep start= disabled
    3. requires reboot: Device Manager -> View -> Show Hidden Devices -> Non Plug and Play -> Beep -> Disable
    4. use TweakUI: General > Settings -> Uncheck the Beep on Errors

    (from here)

提交回复
热议问题