臭居居是大家
臭居居是大家
  • 发布:2020-07-22 07:40
  • 更新:2020-07-22 07:40
  • 阅读:770

设置了程序的web browser 用ie11 启动程序后不生效

分类:uniCloud

悬赏园豆:10 [待解决问题] 浏览: 12次
RegistryKey reg = Registry.LocalMachine;
using (RegistryKey run = reg.OpenSubKey(@"SOFTWARE\WOW6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION", true))
{
var key = "ch2.Spider.SiteManager.exe";
var value = run.GetValue(key);
if (value == null)
{
try
{
Int32 tempInt = 0;
unchecked
{
tempInt = (Int32)0x2AF9;
}https://q.cnblogs.com/q/128360/

                run.SetValue(key, tempInt, RegistryValueKind.DWord);  
                MessageBox.Show("  当前应用程序已成功写入注册表!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);  
            }  
            catch (Exception ex)  
            {  
                MessageBox.Show(ex.Message.ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);  
            }  
        }  
        else  
        {  
            MessageBox.Show(value.ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);  
        }
0 关注 分享

要回复文章请先登录注册