controlpanel

Windows 10 equivalent of LaunchAdvancedAssociationUI

£可爱£侵袭症+ 提交于 2019-11-28 21:10:38
问题 Since Windows 10, the IApplicationAssociationRegistrationUI::LaunchAdvancedAssociationUI method does not work anymore. On Windows Vista, 7 and 8, it opens the Control Panel on the Set Program Associations page for specified application. On Windows 10, it does nothing. It's even documented in Microsoft documentation: Starting in Windows 10, this does not launch the association dialog box. It displays a dialog to the user informing them that they can change the default programs used to open

Registry settings immediate effect using C#

青春壹個敷衍的年華 提交于 2019-11-28 09:49:41
问题 I have used the following code to disable the control panel: RegistryKey RegKey = Registry.CurrentUser.CreateSubKey( @"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"); RegKey.SetValue("NoControlPanel", false, RegistryValueKind.DWord); RegKey.Close(); The above code disables control panel only after restarting, I would like to apply the setting immediately without restarting. Please help me. 回答1: Try this... private const int HWND_BROADCAST = 0xffff; private const int WM

Windows 7 touch screen - disabling multi-touch gesture not working

十年热恋 提交于 2019-11-28 03:37:03
问题 I have a touch screen computer with Windows 7 and I would like to disable the multi-touch gesture : But even if I disable it and apply the changes, when I reopen the window, the option is enabled again... Any idea where I can disable it for good ? (maybe in the registry...) Up: still have the problem. 回答1: How to disable "multi-touch gestures and inking" Run \Windows\System32\regedt32 as Administrator Navigate to HKEY_USERS Find entry that starts with S-1-5-21-xxxxxxxx Note there might be a

How to read “List Separator” settings from Regional configuration of control panel?

好久不见. 提交于 2019-11-27 22:54:59
问题 I'm making multi culture plugin for MS Word,Excel where I need to identify setting value provided in Regional Settings under "List Separator" Option, how can I read using C# ? This List separator is later on being used to construct Excel formulas, word mail merge header, etc. 回答1: Try using System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator or System.Globalization.CultureInfo.GetCultureInfo("en-US").TextInfo.ListSeparator if you look for a specific culture's information.

C#: How to get installing programs exactly like in control panel programs and features?

偶尔善良 提交于 2019-11-27 20:10:59
I read a lot of information of getting programs. None of algorithms did do what I want. I need to get installed programs exactly like in control panel. So I used: WMI Win32_Product class. It shows only msi installed programs. Registry keys. HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall . Again, some programs are not displayed in control panel, some programs displayed in control panel not in this registry node. So, is there anyone in this world, who knew which algorithm use control panel to display installed programs? UPD1:yes, i use 64 bit, i know there is another node for 64bit

How do I configure group policies using C#?

旧时模样 提交于 2019-11-27 19:28:01
问题 How can I manipulate group policy based restriction for the controlpanel and the taskmanager in C#? 回答1: Have a look at WMI. Here is a link to an article on WMI Group policy objects: http://msdn.microsoft.com/en-us/library/aa375082(VS.85).aspx This tool will generate example c# code for you: WMICodeCreator 回答2: you can use Registry key to restriction task manager and control panel easily! 回答3: There is some information on how to edit GPO Registry settings available here: http://msdn.microsoft

C#: How to get installing programs exactly like in control panel programs and features?

做~自己de王妃 提交于 2019-11-26 22:54:09
问题 I read a lot of information of getting programs. None of algorithms did do what I want. I need to get installed programs exactly like in control panel. So I used: WMI Win32_Product class. It shows only msi installed programs. Registry keys. HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall . Again, some programs are not displayed in control panel, some programs displayed in control panel not in this registry node. So, is there anyone in this world, who knew which algorithm use control