How do I disable the c# message box beep?

.net, c#, winforms

Solution

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.

Problem

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 very simple. ``` MessageBox.show("text"); ```

Original source