Hi all!
Supppose we have a UserControl with very simple code:
Now we see the property in PropertyGrid. We choose an image - everything is fine - the image appears in PropertyGrid. But now we want to delete it - select the "System.Drawing.Bitmap" at the grid cell, press Del or Backspace...ooooups... Nothing happens. We just cannot delete it in any way! The property is pinned forever! Try to do the same with any "native" property, like BackgoundImage for Form - you can set and delete it freely.
Why?
I am confused...
Supppose we have a UserControl with very simple code:
Code:
Private m_MyImage As Image
Public Property MyImage() As Image
Get
Return m_MyImage
End Get
Set(ByVal Value As Image)
m_MyImage = Value
End Set
End Property
Now we see the property in PropertyGrid. We choose an image - everything is fine - the image appears in PropertyGrid. But now we want to delete it - select the "System.Drawing.Bitmap" at the grid cell, press Del or Backspace...ooooups... Nothing happens. We just cannot delete it in any way! The property is pinned forever! Try to do the same with any "native" property, like BackgoundImage for Form - you can set and delete it freely.
Why?
I am confused...