all groups > dotnet windows forms designtime > september 2006 >
You're in the

dotnet windows forms designtime

group:

loosing Collection properties when I am Closing MS Visual Studio IDE



loosing Collection properties when I am Closing MS Visual Studio IDE loudajack
9/18/2006 2:36:20 AM
dotnet windows forms designtime: Hi All

I have a Collection property in my custom datagrid control ..
when I am adding values in this collection it updates and adds the
design code also..
But when I am Closing MS Visual Studio IDE I am loosing Collection
properties .. but the code generated is still there ...

How to retain the values in the Collection property in different Visual
Studio sessions...??

Thanx
sandeep
Re: loosing Collection properties when I am Closing MS Visual Studio IDE Frank Loizzi
9/25/2006 9:25:42 PM
Am 18 Sep 2006 02:36:20 -0700 schrieb loudajack:

[quoted text, click to view]

Use this attribute for your collection property:

[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]

Bye

Frank Loizzi
AddThis Social Bookmark Button