[Mono-bugs] [Bug 69739][Nor] New - &C and Application.Exit() not working
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 20 Nov 2004 06:52:05 -0500 (EST)
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 paul@all-the-johnsons.co.uk.
http://bugzilla.ximian.com/show_bug.cgi?id=69739
--- shadow/69739 2004-11-20 06:52:05.000000000 -0500
+++ shadow/69739.tmp.10031 2004-11-20 06:52:05.000000000 -0500
@@ -0,0 +1,86 @@
+Bug#: 69739
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details: Fedora Core 3 (rawhide)
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: paul@all-the-johnsons.co.uk
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: &C and Application.Exit() not working
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Using the test case below, neither Application.Exit() is exitting an
+application or if a letter is preceeded with &, is it being underlined
+
+Steps to reproduce the problem:
+1. Run and complile the test case below
+2.
+3.
+
+Actual Results:
+The window is displayed (though that has an odd coloured background!), the
+button should have the C underlined and when clicked, should exit the program.
+
+Expected Results:
+The window should be uncoloured, the C should be underlined and clicking on
+the button should exit the program
+
+How often does this happen?
+Always
+
+Additional Information:
+Using MWF checked out of svn at about 3pm GMT 19.11.04
+
+Test Case:
+using System;
+using System.Windows.Forms;
+
+namespace ProgCSharp
+{
+ public class HandDrawnClass : Form
+ {
+ private System.Windows.Forms.Label lblOutput;
+ private System.Windows.Forms.Button btnCancel;
+
+ public HandDrawnClass()
+ {
+ this.lblOutput = new System.Windows.Forms.Label();
+ this.btnCancel = new System.Windows.Forms.Button();
+ this.Text = "Hello World";
+ lblOutput.Location = new System.Drawing.Point(16, 24);
+ lblOutput.Text = "Hello World";
+ lblOutput.Size = new System.Drawing.Size(216, 24);
+
+ btnCancel.Location = new System.Drawing.Point(150, 200);
+ btnCancel.Size = new System.Drawing.Size(112, 32);
+ btnCancel.Text = "&Cancel";
+
+ btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
+
+ this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
+ this.ClientSize = new System.Drawing.Size(300, 300);
+ this.Controls.Add (this.btnCancel);
+ this.Controls.Add (this.lblOutput);
+ }
+
+ protected void btnCancel_Click(object sender, System.EventArgs e)
+ {
+ Application.Exit();
+ }
+
+ public static void Main()
+ {
+ Application.Run(new HandDrawnClass());
+ }
+ }
+}