I have a class with 2 properties which are instances of other classes. The properties themselves show up in the designer but they are empty, they do not show the properties in the classes they represent even though they are marked as Browsable. What am I missing?
Here is the relevant code section of the classes in question and a snapshot of the designer.

`Public Class TextBox
Inherits Windows.Forms.TextBox
Implements IBoundControl(Of String)
Implements ICustomControl
<Browsable(True), Category(CAT)> Public Property Bound As IBinding(Of String) Implements IBoundControl(Of String).Bound
<Browsable(True), Category(CAT)> Public Property Custom As ICustom Implements ICustomControl.Custom
Public Sub New()
Me.Bound = New Binding(Of String)("Text", Me)
Me.Custom = New Custom(Me)
End Sub
End Class
Public Class Custom
Implements ICustom
<Browsable(True), Category(CAT), DefaultValue(XAlign.None)> Public Property HorzAlign As XAlign Implements ICustom.HorzAlign
Get
Return _HorizAlign
End Get
Set(value As XAlign)
_HorizAlign = value
Me.CustomControl.Location = Me.CreatePoint
End Set
End Property
<Browsable(True), Category(CAT), DefaultValue(YAlign.None)> Public Property VertAlign As YAlign Implements ICustom.VertAlign
Get
Return _VertAlign
End Get
Set(value As YAlign)
_VertAlign = value
Me.CustomControl.Location = Me.CreatePoint
End Set
End Property
'.... other methods and properties
End Class
`
Tried adding and removing the designer properties in both classes to no avail. I am definitely missing something. Any help greatly appreciated
This is a VB.NET Desktop application
Thanks for the help, it got me going in the right direction. Here is the correct implementation so that it works properly:
End Class
End Class