In our IDE, for example, Visual Studio, if we display the properties of a System.Windows.Forms.Button control, we see some properties that expose anoter set of properties. F
You need to tell it to use ExpandableObjectConverter
(or a custom converter) for StateOfMyCustomControl
. In C#, this is:
[TypeConverter(typeof(ExpandableObjectConverter))]
public class StateOfMyCustomControl {...}
However you apply attributes in VB, do that ;-p
Possibly:
<TypeConverter(GetType(ExpandableObjectConverter))> _
Public Class StateOfMyCustomControl
...