bugDotGNU Portable.NET - Bugs: bug #14348, CreateControlCollection() is...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #14348: CreateControlCollection() is called several times for a control

Submitter:  None
Submitted:  Wed 31 Aug 2005 10:01:22 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Open/Closed:  Closed

Discussion

Wed 31 Aug 2005 10:01:22 AM UTC, original submission:  

The class Windows.Forms.Control calls the method 'CreateControlCollection()' each time the property 'Controls' is accessed.

In MS.NET the method is called once for a control.

Fix for DotGNU:

private ControlCollection controlCollection;
public ControlCollection Controls
{
get
{
if(controlCollection == null)
{
controlCollection = CreateControlsInstance();
}
return controlCollection;
}
}

Anonymous

 

Attached Files

This item currently has no attached files.

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

History

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-09-01 t3rmin4t0r StatusNone Fixed
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.16-2753.
Corresponding source code