• 大小: 0.03M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-24
  • 语言: C#
  • 标签: 菜单  浏览器  C#  c  浏览  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using Microsoft.Win32;
namespace Ex08_09
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

       

        private void button1_Click(object sender EventArgs e)
        {
            RegistryKey reg = Registry.CurrentUser.CreateSubKey(@“SoftWare\Policies\Microsoft\Internet Explorer\Restrictions“);
            reg.SetValue(“NoBrowserContextMenu“1 RegistryValueKind.DWord);
            MessageBox.Show(“修改成功“);

        }

        private void button2_Click(object sender EventArgs e)
        {
            RegistryKey reg = Registry.CurrentUser.CreateSubKey(@“SoftWare\Policies\Microsoft\Internet Explorer\Restrictions“);
            reg.DeleteValue(“NoBrowserContextMenu“false);
            MessageBox.Show(“启用成功“);
  

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2010-04-06 13:12  Ex08_09\
     文件         910  2007-07-11 11:27  Ex08_09.sln
     文件       13312  2007-07-11 11:27  Ex08_09.suo
     目录           0  2010-04-06 13:12  Ex08_09\bin\
     目录           0  2010-04-06 13:12  Ex08_09\bin\Debug\
     文件       20480  2007-07-11 11:27  Ex08_09\bin\Debug\Ex08_09.exe
     文件       24064  2007-07-11 11:27  Ex08_09\bin\Debug\Ex08_09.pdb
     文件        5632  2007-07-11 11:27  Ex08_09\bin\Debug\Ex08_09.vshost.exe
     文件        3221  2007-07-11 11:27  Ex08_09\Ex08_09.csproj
     文件        1046  2007-07-11 11:27  Ex08_09\Form1.cs
     文件        3495  2007-07-11 11:27  Ex08_09\Form1.Designer.cs
     文件        5814  2007-07-11 11:27  Ex08_09\Form1.resx
     目录           0  2010-04-06 13:12  Ex08_09\obj\
     目录           0  2010-04-06 13:12  Ex08_09\obj\Debug\
     文件         842  2007-07-11 11:27  Ex08_09\obj\Debug\Ex08_09.csproj.GenerateResource.Cache
     文件       20480  2007-07-11 11:27  Ex08_09\obj\Debug\Ex08_09.exe
     文件         180  2007-07-11 11:27  Ex08_09\obj\Debug\Ex08_09.Form1.resources
     文件       24064  2007-07-11 11:27  Ex08_09\obj\Debug\Ex08_09.pdb
     文件         180  2007-07-11 11:27  Ex08_09\obj\Debug\Ex08_09.Properties.Resources.resources
     目录           0  2010-04-06 13:12  Ex08_09\obj\Debug\TempPE\
     文件         268  2007-07-11 11:27  Ex08_09\obj\Ex08_09.csproj.FileList.txt
     文件         466  2007-07-11 11:27  Ex08_09\Program.cs
     目录           0  2010-04-06 13:12  Ex08_09\Properties\
     文件        1162  2007-07-11 11:27  Ex08_09\Properties\AssemblyInfo.cs
     文件        2868  2007-07-11 11:27  Ex08_09\Properties\Resources.Designer.cs
     文件        5612  2007-07-11 11:27  Ex08_09\Properties\Resources.resx
     文件        1090  2007-07-11 11:27  Ex08_09\Properties\Settings.Designer.cs
     文件         249  2007-07-11 11:27  Ex08_09\Properties\Settings.settings

评论

共有 条评论