现在我想用几个客户端软件共用一个图片文件夹的图片,
这样就只能用注册表来实现,
求高手指点,最好有代码,我对这部分不熟悉,有介绍这方面的文章或例子就更好了

解决方案 »

  1.   

    using Microsoft.Win32; 
    RegistryKey rk= Registry.CurrentUser;
    RegistryKey subkey = rk.OpenSubKey(keypath, true);
    操作 subkey 就可以了 有get 和set        
            
      

  2.   

    RegistryKey rk= Registry.CurrentUser; 可以根据你的需要更改
      

  3.   

    up+jf
      

  4.   

    http://www.host01.com/article/Net/00020007/0561317294967888.htm
    http://www.pconline.com.cn/pcedu/empolder/net/0412/508782.html自己Google下
    信息很多
      

  5.   

    参考
    http://www.cnblogs.com/hanfeng/archive/2007/09/09/112246.html
      

  6.   

    简单的读写操作    Dim loca As RegistryKey = Registry.LocalMachine
                    Dim run As RegistryKey = loca.CreateSubKey("SOFTWARE\NetLogin")
                    run.SetValue("UserName", txtUsername.Text.Trim)
                    run.SetValue("password", txtPwd.Text.Trim)Dim name As String = ""
                Dim password As String = ""
                Dim loca As RegistryKey = Registry.LocalMachine
                Dim run As RegistryKey = loca.CreateSubKey("SOFTWARE\NetLogin")
                name = run.GetValue("UserName")
                password = run.GetValue("password")
      

  7.   


     private static RegistryKey rk = Registry.LocalMachine;    //注册表
            private static RegistryKey rsk;private void RedKey()
    {
              rk = rk.CreateSubKey("SOFTWARE");     
                rsk = rk.CreateSubKey("ABC");
              string key1 = rsk.GetValue("Key1").ToString();   
    }private void WriteKey()
    {
                rk = rk.CreateSubKey("SOFTWARE");            
                rsk = rk.CreateSubKey("ABC");
                rsk.SetValue("Key1", "kkkeeeyyy1");
    }