Posts

Showing posts with the label an errornbsp;nbsp;nbsp;nbsp;nbsp;ShowErrorMessage(e

Simple Registry Editor Class

Image
Simple Registry Editor Class a very simple class      to read, write, delete and count         registry values with C# using System; // its required for reading/writing into the registry: using Microsoft.Win32;      // and for the MessageBox function: using System.Windows.Forms; namespace Utility.ModifyRegistry {  /// <summary>  /// An useful class to read/write/delete/count registry keys  /// </summary>  public class ModifyRegistry  {   private bool showError = false;   /// <summary>   /// A property to show or hide error messages   /// (default = false)   /// </summary>   public bool ShowError   {    get { return showError; }    set { showError = value; }   }   private string subKey = "SOFTWARE" + Application.ProductName.ToUpper(); ...