2012-06-11 2 views

답변

0

감사합니다 :) Heres는

내 질문에 대한 완전한 답변.

using Microsoft.Win32; 

//this will create the subkey or if it already exists will just get the location. there is //no getsubkey in the registryclass 

RegistryKey rkRegOutlookPreferences = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Office\11.0\Outlook\Preferences"); 

//this will add in or change a value in that subkey 

rkRegOutlookPreferences.SetValue("NewmailDesktopAlerts", "0", RegistryValueKind.DWord); 

//there is also getValue; this will return a null if the value doesnt exist 

rkRegOutlookPreferences.GetValue("NewmailDesktopAlerts") 

//and deleting 

rkRegOutlookPreferences.DeleteValue("NewmailDesktopAlerts"); 

내 질문에 대한 답변이 더 많습니다. 나에게 첫 번째 단계를 주신 Frank White에게 다시 한 번 감사드립니다.

1
HKEY_CURRENT_USER\Software\Microsoft\Office\<version number here>\Outlook\Preferences\NewmailDesktopAlerts 

0으로 변경하십시오. 나에게 초기 단서를주는 프랭크 화이트에

관련 문제