[Mono-bugs] [Bug 78887][Maj] New - When FormBorderStyle.None, cannot set form's start position

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jul 18 05:53:38 EDT 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 kuba.brecka at gmail.com.

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

--- shadow/78887	2006-07-18 05:53:38.000000000 -0400
+++ shadow/78887.tmp.6091	2006-07-18 05:53:38.000000000 -0400
@@ -0,0 +1,53 @@
+Bug#: 78887
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: Slackware, KDE
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: kuba.brecka at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: When FormBorderStyle.None, cannot set form's start position
+
+Description of Problem:
+I have a borderless form, and when I set it's StartPosition to Manual and
+it's Location to (0,0), the form shows wherever it wants anyway. This
+happens on Linux only (maybe also on KDE only).
+
+Reproduce code:
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+namespace MonoTest15
+{
+    class Form1 : Form
+    {
+        static void Main()
+        {
+            Application.Run(new Form1());
+        }
+
+        public Form1()
+        {
+            this.FormBorderStyle = FormBorderStyle.None;
+            this.BackColor = Color.White;
+
+            this.StartPosition = FormStartPosition.Manual;
+            this.Location = new Point(0, 0);
+
+            this.MaximizeBox = false;
+            this.MinimizeBox = false;
+
+            this.TopMost = false;
+            this.Text = "";
+        }
+    }
+}


More information about the mono-bugs mailing list