[Mono-bugs] [Bug 72775][Nor] New - Cannot assign text to TextBox

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 20 Feb 2005 17:36:56 -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 aviary.tree@ntlworld.com.


--- shadow/72775	2005-02-20 17:36:56.000000000 -0500
+++ shadow/72775.tmp.2161	2005-02-20 17:36:56.000000000 -0500
@@ -0,0 +1,59 @@
+Bug#: 72775
+Product: Mono: Class Libraries
+Version: 1.1
+OS: other
+OS Details: Fedora Core 1
+Status: NEW   
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: aviary.tree@ntlworld.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Cannot assign text to TextBox
+Description of Problem:
+Using monobundle-1.1.4 installed on Fedora Core 1
+Cannot assign the Text property of TextBox to a string in the program.
+It fails to compile.
+So, a program cannot display text in a TextBox.
+Steps to reproduce the problem:
+1. Write a small Windows Form program and add one Text Box control to the 
+form. In the program, at any point, but say at initialisation, write:
+string szText = "other text";
+this.TextBox1.Text = szText;
+2. Compile and run it. It fails at start of execution:
+Unhandled Exception: System.EntryPointNotFoundException: GetFontMetrics
+in <0x0004a> (wrapper managed-to-native) 
+System.Windows.Forms.XplatUIX11:GetFontMetrics (intptr,intptr,int&,int&)
+in <0x00034> System.Windows.Forms.XplatUIX11:GetFontMetrics 
+in <0x0001e> System.Windows.Forms.XplatUI:GetFontMetrics 
+in <0x00182> System.Windows.Forms.Line:RecalculateLine 
+(System.Drawing.Graphics)in <0x0028a> 
+in <0x0001a> System.Windows.Forms.Document:RecalculateDocument 
+in <0x002a1> System.Windows.Forms.TextBoxBase:set_Text (string)
+in <0x0000d> System.Windows.Forms.TextBox:set_Text (string)
+in <0x002bd> Windows1.HelloWorldForm:.ctor ()
+in <0x00021> (wrapper remoting-invoke-with-check) 
+Windows1.HelloWorldForm:.ctor ()
+in <0x0001d> Windows1.HelloWorldForm:Main (string[])
+How often does this happen? 
+Every time.
+Additional Information:
+It also fails with:
+this.TextBox1.Text = "some text";