Set Screen Taps and Key Clicks Sound

  • Thread starter Thread starter aLiTaN
  • Start date Start date
A

aLiTaN

Hi,

i have to mute all sound in my device. i used this code;

Dim rg As OpenNETCF.Win32.Registry
rg.CurrentUser.OpenSubKey("ControlPanel\Volume")
rg.CurrentUser.GetValue("Screen", 0)
rg.CurrentUser.Close()

but this code is not running.

How can i mute screen taps and key clicks sounds on the control panel?
 
hi,
i wrote wrong it.

i have used setValue.

rg.reader.CurrentUser.SetValue("Events", 0)
rg.CurrentUser.SetValue("Mute", 0)

i try to LOCAL_MACHINE registry


rg.LocalMachine.OpenSubKey("Snd")
reg_reader.LocalMachine.SetValue("Event", 0)
reg_reader.LocalMachine.Close()

but it dont work.
 
If you think about it, it's very unlikely that the system would check those
registry entries before each and every click it plays - that would be time
consuming and expensive. It's likely that you need to tell the system
they've changed so that it knows to go and re-read the values. Often this
is done through a WM_SETTINGCHANGE broadcast. The sure way to know is to
use the Platform Builder source to look at the control panel source code and
see what it does when you change the values there.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com




hi,
i wrote wrong it.

i have used setValue.

rg.reader.CurrentUser.SetValue("Events", 0)
rg.CurrentUser.SetValue("Mute", 0)

i try to LOCAL_MACHINE registry


rg.LocalMachine.OpenSubKey("Snd")
reg_reader.LocalMachine.SetValue("Event", 0)
reg_reader.LocalMachine.Close()

but it dont work.
 
Back
Top