[Mono-bugs] [Bug 82483][Nor] Changed - Form min and max options available when disabled
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Aug 21 14:17:31 EDT 2007
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=82483
--- shadow/82483 2007-08-19 00:02:16.000000000 -0400
+++ shadow/82483.tmp.3269 2007-08-21 14:17:31.000000000 -0400
@@ -44,6 +44,42 @@
ControlBox = true;
MinimizeBox = false;
MaximizeBox = false;
FormBorderStyle = FormBorderStyle.FixedDialog;
}
}
+
+------- Additional Comments From georgegiolfan at yahoo.com 2007-08-21 14:17 -------
+Additionally, if you set MinimizeBox to false after the window is
+created its caption bar will not even be repainted. For example, run
+this:
+
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+public class MainForm : Form
+{
+ [STAThread]
+ static void Main ()
+ {
+ Application.Run (new MainForm ());
+ }
+
+ public MainForm ()
+ {
+ ClientSize = new Size (300, 220);
+ StartPosition = FormStartPosition.CenterScreen;
+ Text = "bug ######";
+
+ ControlBox = true;
+ MaximizeBox = false;
+ FormBorderStyle = FormBorderStyle.FixedDialog;
+ }
+
+ protected override void OnClick (EventArgs e)
+ {
+ MinimizeBox = false;
+ }
+}
+
+and click the form.
More information about the mono-bugs
mailing list