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 / May 2004

Tip: Looking for answers? Try searching our database.

Custom collection changing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Phil Wright - 23 Apr 2004 14:15 GMT
I have created a custom collection and added it to my user control.

If I let the generic collection editor be used to edit the contents then it
works just fine and any newly created entries are persisted into code. But I
want to create my own collection editor and have used the UITypeEditor
attribute so that mine gets called as a modal dialog. This works fine in
that I can press the '...' button for the collection and my dialog appears
and does into modify the collection contents.

But .... the newly added entries are not persisted into code whereas using
the generic collection editor does. Should I be called some designer related
service/method to notify the designer that the contents have been changed?

Phil.
Paul - 13 May 2004 07:20 GMT
Hi Phil!

It's possible you did not add attribute for collection.
Look at the example:

[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public CommandBarItemCollection Items
{
   get { return this.items; }
}

> I have created a custom collection and added it to my user control.
>
[quoted text clipped - 10 lines]
>
> Phil.

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.