From: Everaldo Canuto Date: Fri, 16 Mar 2007 12:12:49 +0000 (-0000) Subject: * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=8994a83fcd30904c2cca778d2daa3d8ef973b374;p=mono.git * 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 svn path=/trunk/mcs/; revision=74461 --- diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog index 27edeecee07..a7007abc300 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -1,3 +1,9 @@ +2007-03-15 Everaldo Canuto + + * 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 [ Fixes bug #79828 ] diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CommonDialog.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CommonDialog.cs index d84489bc257..342f50b8de8 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CommonDialog.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CommonDialog.cs @@ -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 ();