Hi Nicolaus,
Creating a Property in a UserControl is exactly the same as in any other
class.
Public Property Foo As FooType
Get ...
Set ...
End
If this the sort of Property you mean but with a compound value like Size:
Private _Size As Size
Property Width As Integer
Get
Return _Size.Width
End Get
Set
_Size = New Size (Value, _Size.Height)
End Set
End Property
Property Height As Integer
Get
Return _Size.Height
End Get
Set
_Size = New Size (_Size.Width, Value)
End Set
End Property
But I also wonder whether you mean one that can be displayed in the
Properties box at Design Time?
Regards,
Fergus