<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>

[{'answer_id': 8693, 'author': 'John', 'author_id': 33, 'author_profile': 'https://Stackoverflow.com/users/33', 'pm_score': 3, 'selected': False, 'text': '<p><code>DesignerCategory</code> is used to say if the class is a form, component etc.</p>\n\n<p>For full windows the attribute you want is:</p>\n\n<pre><code>[System.ComponentModel.Category("Custom")]\n</code></pre>\n\n<p>and for the description you can use <code>[System.ComponentModel.Description("This is the description")]</code></p>\n\n<p>To use both together:</p>\n\n<pre><code>[System.ComponentModel.Category("Custom"),System.ComponentModel.Description("This is the description")]\n</code></pre>\n\n<p>However this is part of <code>system.dll</code> which may be different for windows mobile.</p>\n'}, {'answer_id': 8706, 'author': 'Rob Cooper', 'author_id': 832, 'author_profile': 'https://Stackoverflow.com/users/832', 'pm_score': 3, 'selected': True, 'text': '<p>Is this of use to you? I am not into CF development, but it looks like you need to add some XML metadata to enable it:</p>\n\n<p><a href="http://blogs.msdn.com/bluecollar/archive/2007/02/08/adding-compact-framework-design-time-attributes-or-more-fun-with-textboxes.aspx" rel="nofollow noreferrer">http://blogs.msdn.com/bluecollar/archive/2007/02/08/adding-compact-framework-design-time-attributes-or-more-fun-with-textboxes.aspx</a></p>\n\n<p>Interesting read.. Looks like a lot of design time support was stripped out of CF because you dont design them on the devices.. Which seems kinda weird to me.. Cant imagine using a handheld as a development rig!</p>\n\n<p>Scroll down about half way for the good stuff ;)</p>\n'}, {'answer_id': 1345004, 'author': 'Pat O', 'author_id': 67885, 'author_profile': 'https://Stackoverflow.com/users/67885', 'pm_score': 0, 'selected': False, 'text': '<p>The article does not suggest that anyone is designing ON the device.  However, when you create a Compact Framework project, the compact framework (for your desktop PC) is used to handle design time rendering.  If you think about it that is what you expect.  The same framework (or nearly so) is used to do the rendering both on your PC at design time and later on the device at runtime.  The issue is that the design time attributes were not added to the compact framework (I assume to reduce the size).</p>\n'}]
['https://Stackoverflow.com/questions/8691', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/194/']