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 2005

Tip: Looking for answers? Try searching our database.

How to "remove" properties via an IExtenderProvider.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Martin Gustavsson - 13 May 2005 10:28 GMT
Hi all.

I have a component implementing IExtenderProvider. It provides
two new properties for controls, BackColor and ForeColor. These
properties are of my enum type AppColor. The problem is i want to hide
the default BackColor and ForeColor properties from the controls
as well, leaving me with only the properties provided by my extender.
Can this be done? I've come across something called IFilterProperties,
but havn't been able to make it to work.

The result should be something like...

StyleProvider : IExtenderProvider
  provides
    AppColor BackColor
    AppColor ForeColor
  hides/removes/prevents serialization of
    Color BackColor
    Color ForeColor

//Martin Gustavsson
joeycalisay - 14 May 2005 11:04 GMT
better change the added property names...

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.