* CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
authorEveraldo Canuto <everaldo@mono-cvs.ximian.com>
Fri, 16 Mar 2007 12:12:49 +0000 (12:12 -0000)
committerEveraldo Canuto <everaldo@mono-cvs.ximian.com>
Fri, 16 Mar 2007 12:12:49 +0000 (12:12 -0000)
Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
ColorDialog and all derived classes.

2007-03-15  Everaldo Canuto  <everaldo@simios.org>

svn path=/trunk/mcs/; revision=74461

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/CommonDialog.cs

index 27edeecee07abdff8a481b0a71d30371cd9ece51..a7007abc300fd1a27351a6454b32ae22f49d38e0 100644 (file)
@@ -1,3 +1,9 @@
+2007-03-15  Everaldo Canuto  <everaldo@simios.org>
+
+       * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
+       Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
+       ColorDialog and all derived classes.
+
 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
 
        [ Fixes bug #79828 ]
index d84489bc257f17b7a23c2e67a2c9cf0a6262fae7..342f50b8de82d9d4b6c6304152c8b389f86f2254 100644 (file)
@@ -45,6 +45,7 @@ namespace System.Windows.Forms {
                                MaximizeBox = false;
                                ShowInTaskbar = false;
                                FormBorderStyle = FormBorderStyle.Sizable;
+                               StartPosition = FormStartPosition.CenterScreen;
                        }
                        #endregion DialogForm Constructors
 
@@ -64,8 +65,6 @@ namespace System.Windows.Forms {
 
                        #region Internal Methods
                        internal DialogResult RunDialog () {
-                               this.StartPosition = FormStartPosition.CenterScreen;
-
                                owner.InitFormsSize (this);
 
                                this.ShowDialog ();