Windows Develop Bookmark and Share   
 index > Windows Forms General > CollectionEditor
 

CollectionEditor

I have a collection editor which is used with a custom control.

When I add Items to the control's collection property, the CollectionEditor seems to work fine, however, when I run the program the colleciton is empty. 

Also no code is generated behind the windows form.

Do you know what the problem could be?



thankyou.
MigrationUser 1  Thursday, February 20, 2003 7:32 PM
You have to write a TypeConverter for the type that your collection holds, and use the DesignerSerializationVisibility attribute with DesignerSerializationVisibility.Content to tell the serializers to delve in to the collection property and serialize what it holds.
MigrationUser 1  Friday, February 21, 2003 7:52 AM

You can use google to search for other answers

Custom Search

More Threads

• Changing a ContextMenuStrip Location
• Microsoft RichTextBox Control 6.0 and .NET
• C# Form takes long time to close (Refresh!)
• Datagridview Text File, Icon
• Toolstrip Mouseover Background Color and Sizable Tool Window
• How do i pass control to another form in a button click event
• Application looses focus after a dialog is closed
• Programmatically set Localizable property
• Custom painting in a derived ListView (C#)
• Integraitng Help System in Visual Studio 2005 Windows Forms Application