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

Tip: Looking for answers? Try searching our database.

IExtenderProvider: How can I change property name?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WALDO - 02 Jul 2004 14:51 GMT
I have a class, let's call it ExtenderComponent, that implements
IExtenderProvider. It Extends a property called ImageIndex via
CanExtend, GetImageIndex, and SetImageIndex.

What I want to do is on the component that it is extended to
(extendee), have the property simply read 'ImageIndex', rather than
'ImageIndex on ExtenderComponent1'.

Is there any way to do this? I was thinking about using
PropertyDescriptor but I don't know if that will work.

Shawn Burke, if you're out there. I could use some help on this.
Andrew Smith \(Infragistics\) - 08 Jul 2004 02:24 GMT
No, this is not possible. Visual studio uses an internal derived property
descriptor. If you think about why they list that it makes sense - as you
could have multiple instances of the extenderprovider (e.g. multiple tooltip
classes, etc.).

> I have a class, let's call it ExtenderComponent, that implements
> IExtenderProvider. It Extends a property called ImageIndex via
[quoted text clipped - 8 lines]
>
> Shawn Burke, if you're out there. I could use some help on this.
schneider - 26 Jul 2004 08:42 GMT
You can reduce the number of properties which do this.

If you create a TypeConverter for a object.

The object will contain the "* on ExtenderComponent1" but the properties
will not.

Now we just need to hide the object item.

Schneider

> I have a class, let's call it ExtenderComponent, that implements
> IExtenderProvider. It Extends a property called ImageIndex via
[quoted text clipped - 8 lines]
>
> Shawn Burke, if you're out there. I could use some help on this.

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.