Having defined an icon property on my usercontrol as show below,
I can set it just fine using the PropertyGrid. But for some reason I
cannot delete it, once it has been set, i.e. mark the "(icon)" text
and pressing the Delete button, as is the case for standard
"BackgroundImage" properties, etc.
Am I missing an attribute on the property so the Delete button
will assign "Nothing" to the Icon property?!?
TIA,
Joergen Bech
---snip---
Private _HeaderIcon As System.Drawing.Icon
Public Property HeaderIcon() As System.Drawing.Icon
Get
Return Me._HeaderIcon
End Get
Set(ByVal Value As System.Drawing.Icon)
Me._HeaderIcon = Value
Me.Invalidate()
End Set
End Property
Mick Doherty - 18 Feb 2005 00:22 GMT
<System.ComponentModel.DefaultValue(GetType(Icon), Nothing)> _
Public Property HeaderIcon() As Icon
...

Signature
Mick Doherty
http://dotnetrix.co.uk/nothing.html
> Having defined an icon property on my usercontrol as show below,
> I can set it just fine using the PropertyGrid. But for some reason I
[quoted text clipped - 22 lines]
> End Set
> End Property