How do I disable the c# message box beep?

后端 未结 7 1054
攒了一身酷
攒了一身酷 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:17

    From the searching I've done it looks like the beep is hardwired into the Win32 message box function:

    • Bytes
    • VB Forums

    So you need to either write your own method or stop the beep in the hardware. The former will work for everyone, the latter just for you.

提交回复
热议问题