[Mono-bugs] [Bug 70949][Nor] New - Text Property in TextBox control does not work

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 3 Jan 2005 08:44:04 -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 jordi@ximian.com.

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

--- shadow/70949	2005-01-03 08:44:04.000000000 -0500
+++ shadow/70949.tmp.12138	2005-01-03 08:44:04.000000000 -0500
@@ -0,0 +1,48 @@
+Bug#: 70949
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter@novonyx.com                            
+ReportedBy: jordi@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Text Property in TextBox control does not work
+
+This sample program sets the TextBox Text to "Hello World". MS Net shows
+that default text in the TextBox. Our TextBox control does not.
+
+using System.Windows.Forms;
+using System.Drawing;
+
+namespace MyFormProject 
+{
+	
+	
+	class MainForm : System.Windows.Forms.Form
+	{	
+		static private TextBox textbox = new TextBox ();
+		
+		public MainForm()
+		{
+			ClientSize = new System.Drawing.Size (400, 400);
+			
+			textbox.Location = new Point (10,10);
+			Controls.Add (textbox);
+			textbox.Text = "Hello World";
+		}		
+		
+		public static void Main(string[] args)
+		{
+			Application.Run (new MainForm ());			
+		}
+	}
+	
+}