[Mono-bugs] [Bug 76823][Wis] New - System Boxes cannot be suppressed

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Nov 25 07:49:58 EST 2005


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 aviary.tree at ntlworld.com.

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

--- shadow/76823	2005-11-25 07:49:57.000000000 -0500
+++ shadow/76823.tmp.20896	2005-11-25 07:49:58.000000000 -0500
@@ -0,0 +1,100 @@
+Bug#: 76823
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: SUSE 10
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: aviary.tree at ntlworld.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System Boxes cannot be suppressed
+
+Description of Problem:
+Main Form: Maximisebox button = false is ignored.
+Minimisebox button = false is ignored.
+I couldn't see any bug report on this, which is surprising.  Has really
+no-one else noticed this?
+
+mono 1.1.10 on SUSE 10  KDE
+
+Steps to reproduce the problem:
+1. Compile and run the code below, which defines a simple Main Form with an
+exit button, and sets the Maximise and Minimise Box properties to false.
+2. The Minimise and Maximise boxes at the top right of the form are still
+active, and they work if you click on them.
+
+
+Actual Results:
+Click on the maximise box and the form fills the screen, and reverts if you
+click again,
+Click on the minimise box and the form is hidden and re-appears if click on
+ the icon in the taskbar.
+
+Expected Results:
+Click on where the maximise box should be should have no effect.
+Click on where the minimise box should be should have no effect.
+
+How often does this happen? 
+Every time.
+
+Additional Information:
+
+Sample code (verify by visual inspection):
+
+using System;
+using System.Windows.Forms;
+
+namespace listview1
+{
+	class MainForm : System.Windows.Forms.Form
+	{
+		private System.Windows.Forms.Button btnDismiss;
+
+
+		public MainForm()
+		{
+			InitializeComponent();
+
+		}
+		void InitializeComponent() {			
+			this.btnDismiss = new System.Windows.Forms.Button();
+			this.SuspendLayout();
+			// 
+			// btnDismiss
+			// 
+			this.btnDismiss.Location = new System.Drawing.Point(104, 120);
+			this.btnDismiss.Name = "btnDismiss";
+			this.btnDismiss.Size = new System.Drawing.Size(72, 24);
+			this.btnDismiss.TabIndex = 1;
+			this.btnDismiss.Text = "Dismiss";
+			this.btnDismiss.Click += new System.EventHandler(this.BtnDismissClick);
+			// 
+			// MainForm
+			// 
+			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
+			this.ClientSize = new System.Drawing.Size(292, 266);
+			this.Controls.Add(this.btnDismiss);		
+			this.MaximizeBox = false;  // **
+			this.MinimizeBox = false;  // **
+			this.Name = "BoxForm";
+			this.Text = "Test Boxes";
+			this.ResumeLayout(false);
+		}
+		[STAThread]
+		public static void Main(string[] args)
+		{
+			Application.Run(new MainForm());
+		}
+		void BtnDismissClick(object sender, System.EventArgs e)
+		{
+			Application.Exit();
+		}		
+	}
+}


More information about the mono-bugs mailing list