PC Review


Reply
Thread Tools Rate Thread

IExtenderProvider with collections

 
 
=?Utf-8?B?RXVwaGlsb3M=?=
Guest
Posts: n/a
 
      24th Nov 2004

Hello,

Has anybody attempted to use an extender provider to offer a collection-type
property for other objects? (for any other types it works just fine)

The problem I ran into is that the designer does not serialize the
collection properly in code - I did all that should be done for the designer
to serialize a regular collection property, but this doesn't seem to work on
extender properties. The designer auto-generated code looks like:

Me.Button1.ItemSet.Add(item1) ' item1 is a collection item
Me.Button1.ItemSet.Add(item2)

but of course, there is no ItemSet property on the Button control (that
property is handled by the extender).
The code should look something like:

Me.Extender.GetItemSet(Me.Button1).Add(item1)
Me.Extender.GetItemSet(Me.Button1).Add(item2)

and the designer is able to do this for non-collection types (ex.
Me.Extender.SetItemHelp(Me.Button1, "Help")).

Any ideas?

Thanks
 
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
get iextenderprovider instance Lance Johnson Microsoft Dot NET Framework Forms 0 29th Jun 2005 05:04 PM
IExtenderProvider Boris Wehrle Microsoft Dot NET Compact Framework 0 29th Sep 2004 09:14 PM
IExtenderProvider Michel Racicot Microsoft C# .NET 0 12th Apr 2004 03:45 PM
Re: IExtenderProvider for Components yEaH rIgHt Microsoft VB .NET 3 9th Apr 2004 09:15 PM
IExtenderProvider JessCurious Microsoft C# .NET 0 18th Dec 2003 07:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:38 AM.