How To Disable Or Mute System Beep Sound

Having problems with building or using the CefGlue .NET/Mono binding? Ask your questions here.

Moderator: fddima

How To Disable Or Mute System Beep Sound

Postby chenqi » Wed Feb 03, 2016 7:52 pm

I have a Winform Application using CefGlue. The annoying thing is that when I double click some html elements such as an empty input: <input type='text'/>
OR when I drag some html elements , the system ring a beep. (It seems that the beep only happens in 64bit system ).

The beep is so Annoying ! How to prevent that beep ? I had been searched whole day about preventing such beep sound. One of solutions is using user32.dll as below:

public void mute(){
p = Process.GetCurrentProcess();
for (int i = 0; i < 5; i++) {
SendMessageW(p.Handle, WM_APPCOMMAND, p.Handle, (IntPtr)APPCOMMAND_VOLUME_MUTE);
}
}
It works . However, It effect all applications on windows but What I want is just only effects this application.


So any solution to prevent or mute beep sound when I double click , or how to mute my application , effecting just my own this application using c# ?
I nearly get mad by this question. Thank you in advance for your help !!!
chenqi
Newbie
 
Posts: 1
Joined: Wed Feb 03, 2016 7:15 pm

Return to CefGlue Forum

Who is online

Users browsing this forum: No registered users and 18 guests

cron