• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • Last Modified:

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
0
libbysharf
Asked:
libbysharf
1 Solution
 
Bob LearnedCommented:
Try this:

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

Bob
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now