Nested property of a component

Hello,
I'm using a nested property in my component. The property is displayed correctly in the properties window, but when I change it in design time, it doesn't write it in the InitializeComponent() method.
I'm using the attribute       [TypeConverter(typeof(ExpandableObjectConverter))]
What can be wrong?
Thanks, Libby
libbysharfAsked:
Who is Participating?
 
Bob LearnedCommented:
Try this:

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)]

Bob
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.