[Mono-bugs] [Bug 76679][Min] New - TreeView does not handle Click
event
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Nov 12 06:20:46 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 atsushi at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76679
--- shadow/76679 2005-11-12 06:20:46.000000000 -0500
+++ shadow/76679.tmp.27919 2005-11-12 06:20:46.000000000 -0500
@@ -0,0 +1,48 @@
+Bug#: 76679
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com
+ReportedBy: atsushi at ximian.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: TreeView does not handle Click event
+
+With the code below, clicking TreeView should print the message.
+
+using System;
+using System.Windows.Forms;
+
+public class MyTest : Form
+{
+ public static void Main ()
+ {
+ Application.Run (new MyTest ());
+ }
+
+ public MyTest ()
+ {
+ TreeView tv = new TreeView ();
+ tv.Dock = DockStyle.Fill;
+ tv.Nodes.Add (new TreeNode ("foo"));
+ Controls.Add (tv);
+ tv.Click += new EventHandler (DoClick);
+ }
+
+ void DoClick (object o, EventArgs e)
+ {
+ Console.WriteLine ("clicked");
+ }
+}
+
+(I'm verifying this bug on Windows but IIRC it happened on SUSE10 too).
+
+Setting minor since most of users won't use it (AfterSelect works fine).
More information about the mono-bugs
mailing list