[Mono-bugs] [Bug 80200][Cos] New - FileDialog appears in the top left corner of the screen

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Dec 9 09:25:10 EST 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by georgegiolfan at yahoo.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80200

--- shadow/80200	2006-12-09 09:25:10.000000000 -0500
+++ shadow/80200.tmp.9252	2006-12-09 09:25:10.000000000 -0500
@@ -0,0 +1,54 @@
+Bug#: 80200
+Product: Mono: Class Libraries
+Version: 1.2
+OS: Windows XP
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Cosmetic
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: georgegiolfan at yahoo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: FileDialog appears in the top left corner of the screen
+
+Description of Problem:
+OpenFileDialog or SaveFileDialog appears in the top left corner of the 
+screen. On Microsoft .NET Framework, the dialog appears somewhere in the 
+center of the screen.
+
+Steps to reproduce the problem:
+Compile and run the following program.
+using System;
+using System.Windows.Forms;
+class Test {
+    [STAThread]
+    static void Main() {
+        new OpenFileDialog().ShowDialog();
+    }
+}
+Actual Results:
+A file dialog in the top left corner of the screen.
+
+Expected Results:
+A file dialog somewhere in the center of the screen.
+
+
+How often does this happen? 
+Always, it seems. Even if I move the dialog, next time it is still shown 
+in the corner.
+
+Additional Information:
+Apparently, FileDialog seems to try to remember it's last position. This 
+does not seem to work. A better solution in the short term would be to 
+simply make the form start in the center of the screen. I think this could 
+be achieved by changing (in FileDialog.cs, in the constructor)
+			if (formConfigLocation != Point.Empty) {
+				form.Location = formConfigLocation;
+			}
+to
+                  form.StartPosition = FormStartPosition.CenterScreen;


More information about the mono-bugs mailing list