Author: rolf
Date: 2007-07-20 12:23:59 -0400 (Fri, 20 Jul 2007)
New Revision: 82367

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: Don't try to position the form after loading if the form was
  disposed. Fixes #81969.

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-07-20 16:23:29 UTC (rev 82366)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-07-20 16:23:59 UTC (rev 82367)
@@ -1,5 +1,10 @@
 2007-07-20  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
 
+       * Form.cs: Don't try to position the form after loading if the form was
+         disposed. Fixes #81969.
+
+2007-07-20  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
+
        * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
          properties. Had to change ToolBar into ToolStrip, which required a
          few #ifs.

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs  
2007-07-20 16:23:29 UTC (rev 82366)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs  
2007-07-20 16:23:59 UTC (rev 82367)
@@ -2803,7 +2803,7 @@
 
                        OnLoad (e);
 
-                       if (!IsMdiChild) {
+                       if (!IsMdiChild && !IsDisposed) {
                                switch (StartPosition) {
                                        case FormStartPosition.CenterScreen:
                                                this.CenterToScreen ();

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

Reply via email to