[Mono-bugs] [Bug 394311] New: MDI children with tool window border cause an error

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat May 24 06:27:14 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=394311


           Summary: MDI children with tool window border cause an error
           Product: Mono: Class Libraries
           Version: SVN
          Platform: i686
        OS/Version: Windows
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: georgegiolfan at yahoo.com
         QAContact: mono-bugs at lists.ximian.com
                CC: georgegiolfan at yahoo.com
          Found By: ---


Created an attachment (id=217964)
 --> (https://bugzilla.novell.com/attachment.cgi?id=217964)
Patch (fixes this bug but may introduce others)

Description of Problem:
MDI children with FormBorderStyle set to FixedToolWindow or SizableToolWindow
cause an error message box to be displayed.

Steps to reproduce the problem:
Compile and run the following program.
using System.Windows.Forms;
class Test
{
        static void Main ()
        {
                Form parent = new Form ();
                parent.IsMdiContainer = true;
                Form child = new Form ();
                child.MdiParent = parent;
                child.FormBorderStyle = FormBorderStyle.FixedToolWindow; //or
SizableToolWindow
                child.Show ();
                Application.Run (parent);
        }
}


Actual Results:
An error message box is displayed.

Expected Results:
No error message box.

How often does this happen? 
Always.

Additional Information:
The message box is displayed by the call in XplatUIWin32.cs at line 1596.
The attached patch seems to fix it, but I do not know what the check that I
removed is supposed to do.


-- 
Configure bugmail: https://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