.
In Depth Banner
Skip Navigation Links

Select your preferred language

The PostFilter method override

    protected override void PostFilterProperties(System.Collections.IDictionary properties)

    {

      base.PostFilterProperties (properties);

 

      //The properties that would cause the control to cease functioning

      //in the designer must be replaced with harmless copies.

 

      //EnableTimeout is replaced with the designers harmless one

      properties["EnableTimeout"]=TypeDescriptor.CreateProperty(

        typeof(AControlDesigner),

        (PropertyDescriptor)properties["EnableTimeout"],

        new Attribute[0]);

 

      //UsableTime is also replaced

      properties["UsableTime"]=TypeDescriptor.CreateProperty(

        typeof(AControlDesigner),

        (PropertyDescriptor)properties["UsableTime"],

        new Attribute[0]);

 

    }

Return to the article.

Copyright © Bob Powell 2000-.  All rights reserved.