private void btn_setdefault_Click(object sender, EventArgs e)
{
//set browser select as default in registry
//http
using (RegistryKey key = Registry.CurrentUser.CreateSubKey(
@"Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice"))
{
key.SetValue("ProgId", "bselectURL");
}
//https
using (RegistryKey key = Registry.CurrentUser.CreateSubKey(
@"Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice"))
{
key.SetValue("ProgId", "bselectURL");
}
btn_setdefault.Enabled = false;
}