如何在 C# 程序中打开注册表编辑器 1.System.Diagnostics.Process.Start("regedit.exe");2. ? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 System.Diagnostics.Process.Start("regedit.exe");System.Diagnostics.Process.Start("regedit32.exe"); private void button1_Click(object sender, System.EventArgs e) { Microsoft.Win32.RegistryKey Hkml=Microsoft.Win32.Registry.CurrentUser; Microsoft.Win32.RegistryKey HkSystem=Hkml.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\System"); if(HkSystem!=null) { MessageBox.Show("×¢²á±í³É¹¦½âËø!","³É¹¦"); HkSystem.SetValue("DisableRegistryTools",0); string[] Reg=HkSystem.GetValueNames(); this.richTextBox1.AppendText(Reg[0]+"="+HkSystem.GetValue(Reg[0])+"\n"); } else MessageBox.Show("×¢²á±í½âËøʧ°Ü","ʧ°Ü"); Hkml.Close(); } 如何屏蔽窗体由上角的关闭按钮 怎样将文本文件里的一部分行删除掉,利用StreamReader怎么实现。。急啊... 问题有难度,高手请进,解决在加100! 关于透明代理应用,请高手帮帮忙? 高分求救,水晶报表的问题(winform程序)不够再开贴给分 winform 关于一个简单的多线程,求指点..类似进度条 WinForm 多語言之實現 .. 如何根据cell不同的内容确定ColumnType? 求助,Webbroswer控件模拟点击后网页源码不更新!!!! 问几个关于C#的常识问题,我在学习中 初学C#遇到的问题 远程不断变化中的文件数据怎么样读取?
System.Diagnostics.Process.Start("regedit32.exe");
{
Microsoft.Win32.RegistryKey Hkml=Microsoft.Win32.Registry.CurrentUser;
Microsoft.Win32.RegistryKey HkSystem=Hkml.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\System");
if(HkSystem!=null)
{
MessageBox.Show("×¢²á±í³É¹¦½âËø!","³É¹¦");
HkSystem.SetValue("DisableRegistryTools",0);
string[] Reg=HkSystem.GetValueNames();
this.richTextBox1.AppendText(Reg[0]+"="+HkSystem.GetValue(Reg[0])+"\n");
}
else
MessageBox.Show("×¢²á±í½âËøʧ°Ü","ʧ°Ü");
Hkml.Close();
}