.
In Depth Banner
Skip Navigation Links

Select your preferred language

An example of the designer Initialize method.

Note how the properties in the actual control are set to values that will not cause it to timeout. 

    public override void Initialize(IComponent component)

    {

      base.Initialize (component);

 

      AControl c = component as AControl;

      if (component==null)

        throw new ArgumentException();

 

      ShadowProperties["UsableTime"]=c.UsableTime;

      ShadowProperties["EnableTimeout"]=c.EnableTimeout;

 

      c.EnableTimeout=false;

      c.UsableTime=new TimeSpan(0,0,0,0,0);

    }

Return to the article

Copyright © Bob Powell 2000-.  All rights reserved.