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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=79534 --- shadow/79534 2006-09-30 08:15:01.000000000 -0400 +++ shadow/79534.tmp.30276 2006-09-30 08:15:01.000000000 -0400 @@ -0,0 +1,50 @@ +Bug#: 79534 +Product: Mono: Class Libraries +Version: 1.1 +OS: +OS Details: Windows XP SP1 +Status: NEW +Resolution: +Severity: Unknown +Priority: Normal +Component: Windows.Forms +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: Cannot "click" a Button with the Enter key + +In mono 1.1.17.1, Windows XP SP1, you can't "click" a button by hitting +Enter on the keyboard. Run the following sample code, press Enter, a +messagebox show show up. It does under MS.NET, but doesn't under Mono. I +don't know if this bug exist only on Windows, haven't tested under Linux. + +Reproduce code: + +using System; +using System.Windows.Forms; + +namespace MonoTest29 +{ + public class Form1 : Form + { + static void Main() + { + Application.Run(new Form1()); + } + + public Form1() + { + Button B = new Button(); + B.Click += new EventHandler(B_Click); + Controls.Add(B); + } + + void B_Click(object sender, EventArgs e) + { + MessageBox.Show("Test"); + } + } +} _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
