title: User Control Property Designer Properties
body: <p>For a C# UserControl on Windows Mobile (though please answer if you know it for full Windows...it might work) how do you change what shows up in the Designer Properties window for one of the Control's public Properties.  For example:</p>
  
  <pre><code>private Color blah = Color.Black;
  
  public Color Blah
  {
      get { return this.blah; }
      set { this.blah = value; }
  }
  </code></pre>
  
  <p>This shows up for the control, but it's in the "Misc" category and has no description or default value.  I've tried using the settings in System.ComponentModel like "DesignerCategory", such as:</p>
  
  <pre><code>[DesignerCategory("Custom")]
  </code></pre>
  
  <p>But says this is only valid for class declarations... could've sworn it was the System.ComponentModel items I used before...</p>
  
  <h3>Update:</h3>
  
  <p>@John said:</p>
  
  <blockquote>
    <p>DesignerCatogy is used to say if the
    class is a form, component etc.</p>
    
    <p>Try this:</p>
    
    <p>[Category("Custom")]</p>
  </blockquote>
  
  <p>Is there a particular namespace I need to use in order to get those?
  I've tried those exactly and the compiler doesn't recognize them.</p>
  
  <p>In .NETCF all I seem to have available from System.ComponentModel is:</p>
  
  <pre><code>DataObject,
  DataObjectMethod,
  DefaultValue,
  DesignerCategory,
  DesignTimeVisible,
  EditorBrowsable
  </code></pre>
  
  <p>The only one it doesn't scream at is EditorBrowsable</p>