Mystified by ExpandableObjectConverter
-
Greetings! I have a custom class that has three public properties. I have a control that has a public property that is an instance of that class. I want the property to show up in the property grid with a + sign and to show the class's properties when a user clicks on the + sign. Fine. No problem. I just set the TypeConverter attribute for the class to ExpandableObjectConverter, and everything works as advertised. With one small exception. I have a demo project that has a form that has an instance of the control. I edit the form and set one of the control's class instance's properties. I run the form and click a button that shows what the object's properties are. The message box tells me that the value I entered in the property grid got lost!!! It is not permanently applied to the object on my form! What do I have to do to get .Net to remember my property change? Thanks very much! Rob Richardson