<p>I have a line color property in my custom grid control. I want it to default to <code>Drawing.SystemColors.InactiveBorder</code>. I tried:</p>

<pre><code>[DefaultValue(typeof(System.Drawing.SystemColors), "InactiveBorder")]
public Color LineColor { get; set; }
</code></pre>

<p>But it doesn't seem to work. How do I do that with the default value attribute?</p>

You need to change first argument from
```
SystemColors
```
to
```
Color
```
.
It seems that there is no type converter for the
```
SystemColors
```
type, only for the
```
Color
```
type.
```
```
[DefaultValue(typeof(Color),"InactiveBorder")]
```
```