Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / October 2004

Tip: Looking for answers? Try searching our database.

Collection Serialization

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nice Chap - 21 Oct 2004 10:40 GMT
I have a collection class that is derived from CollectionBase. There is a property on my *Form Class* of type= MyCollection class. This form property has the following attributes:

<Editor(GetType(System.ComponentModel.Design.CollectionEditor), GetType(System.Drawing.Design.UITypeEditor)), DesignerSerializationVisibility(DesignerSerializationVisibility.Content)> _

Public Property Parameters() As UIWinScreenParametersCollection

At deign-time VS.Net displays the collection editor and allow us to input new items but items are not getting presisted. Is there any other attribute I have to use please ?

Thanks
Bob Powell [MVP] - 23 Oct 2004 10:56 GMT
Ensure that you set the DesignerSerializationVisibility attribute with a setting of DesignerSerializationVisibility.Content on your collection property.

Signature

Bob Powell [MVP]
Visual C#, System.Drawing

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml

 I have a collection class that is derived from CollectionBase. There is a property on my *Form Class* of type= MyCollection class. This form property has the following attributes:

 <Editor(GetType(System.ComponentModel.Design.CollectionEditor), GetType(System.Drawing.Design.UITypeEditor)), DesignerSerializationVisibility(DesignerSerializationVisibility.Content)> _

 Public Property Parameters() As UIWinScreenParametersCollection

 At deign-time VS.Net displays the collection editor and allow us to input new items but items are not getting presisted. Is there any other attribute I have to use please ?

 Thanks

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.