[Mono-bugs] [Bug 81173][Min] Changed - WinForms: ContainerControl.OnHandleCreated and OnHandleDestroyed works incorrectly

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Mar 17 12:43:44 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 azazel at email.cz.

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

--- shadow/81173	2007-03-17 11:41:20.000000000 -0500
+++ shadow/81173.tmp.28266	2007-03-17 11:43:44.000000000 -0500
@@ -2,13 +2,13 @@
 Product: Mono: Runtime
 Version: 1.2
 OS: other
 OS Details: Suse 10
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Minor
 Component: misc
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: azazel at email.cz               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -40,6 +40,45 @@
 > FINISH
 
 ------- Additional Comments From azazel at email.cz  2007-03-17 11:41 -------
 Created an attachment (id=18915)
 bug 81173 sample code
 
+
+------- Additional Comments From azazel at email.cz  2007-03-17 11:43 -------
+I'm, sorry wrong code, please ignore the attachment, correct code is 
+here:
+
+using System;
+using System.Windows.Forms;
+
+class Program
+{
+    class Form1 : Form
+    {
+        protected override void OnHandleCreated(EventArgs e)
+        {
+            Console.WriteLine(">> handle " + Handle + " created");
+            base.OnHandleCreated(e);
+        }
+        protected override void OnHandleDestroyed(EventArgs e)
+        {
+            Console.WriteLine(">> handle " + Handle + " destroyed");
+            base.OnHandleDestroyed(e);
+        }
+
+        protected override void Dispose(bool disposing)
+        {
+            Console.WriteLine("> DISPOSE");
+            base.Dispose(disposing);
+        }
+    }
+
+    static void Main(string[] args)
+    {
+        Console.WriteLine("> START");
+        Application.Run(new Form1());
+        Console.WriteLine("> FINISH");
+    }
+}
+
+


More information about the mono-bugs mailing list