dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bug #14348] CreateControlCollection() is called sever


From: anonymous
Subject: [Pnet-developers] [bug #14348] CreateControlCollection() is called several times for a control
Date: Wed, 31 Aug 2005 10:01:23 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=14348>

                 Summary: CreateControlCollection() is called several times
for a control
                 Project: DotGNU Portable.NET
            Submitted by: None
            Submitted on: Mi 31.08.2005 um 10:01
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open

    _______________________________________________________

Details:

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;
        }
}






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=14348>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]