New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Language: C#

A ProperyGrid example in C#

86 Views
Copy Code Show/Hide Line Numbers
   1:     public class GranslatorSettings
   2:      {
   3:   
   4:          [Category("Languages"), Description("Remember source and target languages when you close the program.")]
   5:          public bool RememberLanguages
   6:          {
   7:              get;
   8:              set;
   9:          }
  10:   
  11:   
  12:          [Category("Application"), Description("Set editor font.")]
  13:          public System.Drawing.Font EditorFont
  14:          {
  15:              get;
  16:              set;
  17:          }
  18:   
  19:          [Category("Application"), Description("Run everytime Windows starts.")]
  20:          public bool RunWithWindows
  21:          {
  22:              get;
  23:              set;
  24:          }
  25:   
  26:          [Category("Application"), Description("Hide main window when minimized.")]
  27:          public bool HideWhenMinimize
  28:          {
  29:              get;
  30:              set;
  31:          }
  32:   
  33:      }
  34:   
  35:   
  36:  //assign it to PropertyGrid
  37:  propertyGrid1.SelectedObject = new GranslatorSetting();
by Iman Nemati
  July 21, 2009 @ 2:07pm
Tags:

Add a comment


Report Abuse
brought to you by:
West Wind Techologies


If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate