title: c# how can return value from class?
body: <p>I have class !</p>
  
  <pre><code>class Reg_v_no_string
  {
      public static string key_place = "";
      public static string key = "";
      public static string value = "";
      public string reg_value(string key_place, string key)
      {
          string value = string.Empty;
  
              RegistryKey klase = Registry.CurrentUser;
              klase = klase.OpenSubKey(key_place);
              value = klase.GetValue(key).ToString();
              klase.Close();
  
          return value;
      }
  }
  </code></pre>
  
  <p>and this returns blank message box.
  How can solve this problem !?
  Thanks !</p>
  
  <p>how can i return value from this class ?</p>
  
  <p>I tryed</p>
  
  <pre><code>private void kryptonButton1_Click(object sender, EventArgs e)
      {
          Reg_v_no_string.key_place = @"Control Panel\Desktop";
          Reg_v_no_string.key_place = "WheelScrollLines";
          MessageBox.Show(Reg_v_no_string.value);
  
      }
  </code></pre>