[Mono-bugs] [Bug 79923][Nor] New - Extrange behavior in RichTextBox if declared as an object
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Nov 14 01:00:25 EST 2006
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 linux.sarge at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=79923
--- shadow/79923 2006-11-14 01:00:25.000000000 -0500
+++ shadow/79923.tmp.31934 2006-11-14 01:00:25.000000000 -0500
@@ -0,0 +1,105 @@
+Bug#: 79923
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Windows XP
+OS Details: Service pack 2
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: linux.sarge at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Extrange behavior in RichTextBox if declared as an object
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+
+Description of Problem:
+
+If you create a "RichTextBox" object with code (No GUI) and try to put text
+in his "Text" property, extrange behavior happens. just run the code (a
+simple console one) in Windows Xp.
+
+Steps to reproduce the problem:
+1. Put this in a console project:
+2. RichTextBox myRtb = new RichTextBox();
+3. myRtb.Text="Text for testing";
+
+Actual Results:
+Look the screenshot to see the results of the bug:
+http://img140.imageshack.us/img140/1547/windowsbugscreenre5.jpg
+
+Expected Results:
+I only spect that the program works with no extrange behavior.
+
+How often does this happen?
+Always
+
+Additional Information:
+Only happens in Windows, i test the code in my gentoo linux and work as
+expected. The code also works Ok in windows with .net framework 1.1 and 2.0
+
+Im using the latest mono (1.2) in both Windows Xp and Linux.
+
+You can use this code under windows Xp to reproduce the bug: Its a simple
+console application:
+
+Save the code as "Class.cs" or other file name. And compile it this way:
+>mcs -t:exe -r:System.dll -r:System.Windows.Forms.dll -out:TestApp.exe
+-recurse:Class.cs
+
+Then run it as usual:> mono TestApp.exe
+
+//Here is the code
+using System;
+using System.Windows.Forms;
+
+namespace Project6
+{
+ class Class
+ {
+ [STAThread]
+ static void Main(string[] args)
+ {
+
+ RichTextBox tb1=new RichTextBox();
+ RichTextBox tb2=new RichTextBox();
+ RichTextBox tb3=new RichTextBox();
+ RichTextBox tb4=new RichTextBox();
+ RichTextBox tb5=new RichTextBox();
+ RichTextBox tb6=new RichTextBox();
+ RichTextBox tb7=new RichTextBox();
+ RichTextBox tb8=new RichTextBox();
+
+ tb1.Text="RichTextBox1";
+ tb2.Text="RichTextBox2";
+ tb3.Text="RichTextBox3";
+ tb4.Text="RichTextBox4";
+ tb5.Text="RichTextBox5";
+ tb6.Text="RichTextBox6";
+ tb7.Text="RichTextBox7";
+ tb8.Text="RichTextBox8";
+
+ Console.WriteLine(tb1.Text);
+ Console.WriteLine(tb2.Text);
+ Console.WriteLine(tb3.Text);
+ Console.WriteLine(tb4.Text);
+ Console.WriteLine(tb5.Text);
+ Console.WriteLine(tb6.Text);
+ Console.WriteLine(tb7.Text);
+ Console.WriteLine(tb8.Text);
+
+ Console.Read();
+
+
+ }
+ }
+}
+
+//Sorry for my bad english, only speak good spanish :P
+//and Thanks for use your time making mono better!! :D
More information about the mono-bugs
mailing list