Author: gert
Date: 2007-01-16 11:02:58 -0500 (Tue, 16 Jan 2007)
New Revision: 71145

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
Log:
* Form.cs: Provide meaningful message when MdiParent is assigned a
Form that is not an MdiContainer.


Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-01-16 15:35:52 UTC (rev 71144)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-01-16 16:02:58 UTC (rev 71145)
@@ -1,3 +1,8 @@
+2007-01-16  Gert Driesen  <[EMAIL PROTECTED]>
+
+       * Form.cs: Provide meaningful message when MdiParent is assigned a
+       Form that is not an MdiContainer.
+
 2007-01-16  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>
 
        * MdiWindowManager.cs: Fix NRE when merging menus and main form

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs  
2007-01-16 15:35:52 UTC (rev 71144)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs  
2007-01-16 16:02:58 UTC (rev 71145)
@@ -613,7 +613,8 @@
 
                        set {
                                if (value != null && !value.IsMdiContainer)
-                                       throw new ArgumentException ();
+                                       throw new ArgumentException ("Form that 
was specified to be "
+                                               + "the MdiParent for this form 
is not an MdiContainer.");
 
                                if (mdi_parent != null) {
                                        mdi_parent.MdiContainer.Controls.Remove 
(this);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to