http://www.ccidnet.com/tech/guide/2001/11/26/58_3786.html
http://www.ccidnet.com/html/tech/guide/2001/11/30/92_3843.html
http://www.ccidnet.com/html/tech/guide/2001/11/30/92_3843.html
解决方案 »
- C#中动态显示中文帮助的问题
- 关于TextBox控件里显示文本的问题
- Control.BeginInvoke 方法 (Delegate)
- [研究]不规则坐标(可看作二维数组)分组算法。欢迎所有有兴趣研究算法的人。
- 一个串口通信的多线程处理的问题
- system.data.sqlclient.sqlexception类型的未经处理的异常出现在system.data.dll
- 朋友们向我推荐几本C#书吧,关于程序扩展,升级(补丁升级,在线升级)方面的,半小时结贴
- WindowsService 程序如何设置断点调试?
- 请大侠帮忙解决如下问题:
- 资源本地化的问题,高手看过来
- MailMessage.Attachments如何用呀,请给一个mail带附件的程序片段
- 我现在只会delphi,想学C#,不知买什么书入门?
http://www.ccidnet.com/html/tech/guide/2001/11/30/92_3843.html
RegistryKey rkey = Registry.LocalMachine;
//The second parameter tells it to open the key as writable
RegistryKey rkey1 = rkey.OpenSubKey("Software",true);
RegistryKey rkey2 = rkey1.CreateSubKey("baoTest");
rkey2.SetValue("Name",textBox1.Text);
rkey2.Close();
rkey1.Close();
读:
RegistryKey rkey = Registry.LocalMachine;
//The second parameter tells it to open the key as writable
RegistryKey rkey1 = rkey.OpenSubKey("Software\\baoTest",true);
textBox2.Text=rkey1.GetValue("Name").ToString();