Programmatically Set Browser Proxy Settings in C#

This depends somewhat on your exact needs. If you are writing a C# app and simply want to set the default proxy settings that your app will use, use the class System.Net.GlobalProxySelection (http://msdn.microsoft.com/en-us/library/system.net.globalproxyselection.aspx). You can also set the proxy for any particular connection with System.Net.WebProxy (http://msdn.microsoft.com/en-us/library/system.net.webproxy.aspx). If you actually want to update the proxy settings … Read more

How to Pass MULTIPLE filenames to a Context Menu Shell Command?

You can use Send To for this. It supports multiple files. In case this website goes offline: Open shell:sendto with Windows + R or paste it into your explorer address bar. It should redirect you to: C:\Users\<yourusername>\AppData\Roaming\Microsoft\Windows\SendTo Create a shortcut to your program in this folder and you should see it in your explorer right-click … Read more

Where does Windows store its “Open With” settings?

Take a look in: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\ and the sub-key of that is the extension you reassigned. Under that there will be the UserChoice and OpenWithList sub-keys which will contain your redefinition. You may also want to read http://support.microsoft.com/kb/950505 which talks about your issue. Update As of Windows 8, life has gotten far more complicated. To create … Read more

modifying the registry key value

It’s been a while I did reg hacks, but something like this could work: RegistryKey myKey = Registry.LocalMachine.OpenSubKey(“SOFTWARE\\Company\\Compfolder”, true); if(myKey != null) { myKey.SetValue(“Deno”, “1”, RegistryValueKind.String); myKey.Close(); }

How do you clear your MRU list in Visual Studio?

There is an MSDN article here which suggests that you just move the projects to a new directory. However, as you mentioned, the list of projects is kept in the registry under this key: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\<version>\ProjectMRUList and the list of recent files is kept in this key: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\<version>\FILEMRUList Note For Visual Studio 2015: The location has … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)