[Mono-bugs] [Bug 580042] New: ParentChanged Event is not fired when using System.ComponentModel functionality

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Feb 15 17:52:45 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=580042

http://bugzilla.novell.com/show_bug.cgi?id=580042#c0


           Summary: ParentChanged Event is not fired when using
                    System.ComponentModel functionality
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: x86
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: moudi at gmx.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=342536)
 --> (http://bugzilla.novell.com/attachment.cgi?id=342536)
Sample project to reproduce the defect

User-Agent:       Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

When a Control's parent is changed using System.ComponentModel code, its
ParentChanged event is not fired. Also the ControlAdded (and i assume the
ControlRemoved too) event of the parent control/form is not fired. Using the
standard .NET framework, the events are fired.

Example code:
PropertyDescriptor childProperty =
TypeDescriptor.GetProperties(MyNiceForm)["Controls"];
System.Collections.IList childs = childProperty.GetValue(MyNiceForm) as
System.Collections.IList;
childs.Add(MyNiceControl);

Reproducible: Always

Steps to Reproduce:
1. Open the sample project from the attachement
2. Compile the sample project and run it using .NET
3. Compile the sample project and run it using Mono
Actual Results:  
The checkbox is not checked using Mono, but checked using .NET

Expected Results:  
The checkbox should be checked in both environments.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list