[Mono-bugs] [Bug 81670][Nor] Changed - TextBox in Mdi Child Form gets stuck in loop

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri May 18 09:00:01 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 kaetemi at gmail.com.

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

--- shadow/81670	2007-05-18 08:41:26.000000000 -0400
+++ shadow/81670.tmp.18795	2007-05-18 09:00:01.000000000 -0400
@@ -42,6 +42,36 @@
 Additional Information:
 -
 
 ------- Additional Comments From gert.driesen at pandora.be  2007-05-18 08:41 -------
 Please attach a small repro. If only it saves the developers a minute 
 or two ...
+
+------- Additional Comments From kaetemi at gmail.com  2007-05-18 09:00 -------
+The bit of code that does it:
+
+-----------------------------
+
+using System;
+using System.Windows.Forms;
+
+namespace mditbte
+{	
+	public static class Program
+	{		
+		public static void Main()
+		{
+			Form parent = new Form();
+			parent.IsMdiContainer = true;
+			Form child = new Form();
+			TextBox textbox = new TextBox();
+			child.Controls.Add(textbox);
+			child.TopLevel = false;
+			child.MdiParent = parent;
+			child.Show();
+			Application.Run(parent);
+		}
+	}
+}
+
+-----------------------------
+


More information about the mono-bugs mailing list