PC Review


Reply
Thread Tools Rate Thread

Designer -> 'Collection' type property -> refresh control after adding new items

 
 
12jumper@wp.pl
Guest
Posts: n/a
 
      10th Jan 2007
Hi All

I've created an UserControl, which has a couple of properties that are
collections (generic lists of some objects). It would be nice, if
control refreshed each time I add a new item to the collection (using
StringCollectionEditor). Is there any attribute I can use, or perhaps I
have to create a new class that inherites from List<T> and subscribe on
some event? Any suggestions greatly appreciated.

Greetings
jumper

 
Reply With Quote
 
 
 
 
Stoitcho Goutsev \(100\)
Guest
Posts: n/a
 
      10th Jan 2007
What do you meen by refreshing the control? When adding/removing elements to
the collection using string collection editor should fire
ComponentChanging/ComponentChanged events through the
ICompoenentChangedService. You can subscirbe for these notifications in your
designer and use them to update your control.


--
Stoitcho Goutsev (100)

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All
>
> I've created an UserControl, which has a couple of properties that are
> collections (generic lists of some objects). It would be nice, if
> control refreshed each time I add a new item to the collection (using
> StringCollectionEditor). Is there any attribute I can use, or perhaps I
> have to create a new class that inherites from List<T> and subscribe on
> some event? Any suggestions greatly appreciated.
>
> Greetings
> jumper
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
collection property and refresh control --== Alain ==-- Microsoft VB .NET 3 21st Feb 2007 09:21 PM
collection property and refresh the parent control --== Alain ==-- Microsoft Dot NET 1 21st Feb 2007 08:04 AM
Adding items in collection property during design mode Saimeera Microsoft ASP .NET 0 10th May 2006 12:34 PM
Adding to custom collection property in designer Bob Dankert Microsoft Dot NET Framework Forms 12 28th Sep 2004 06:56 AM
Help with a collection item property's designer Andrés Giraldo Microsoft ASP .NET 1 9th Mar 2004 01:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:20 AM.