[Mono-bugs] [Bug 81479][Nor] New - loading a file into a rich text box fails
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Apr 28 16:38:36 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 bjansen at etro.vub.ac.be.
http://bugzilla.ximian.com/show_bug.cgi?id=81479
--- shadow/81479 2007-04-28 16:38:36.000000000 -0400
+++ shadow/81479.tmp.18272 2007-04-28 16:38:36.000000000 -0400
@@ -0,0 +1,58 @@
+Bug#: 81479
+Product: Mono: Runtime
+Version: 1.2
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: bjansen at etro.vub.ac.be
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: loading a file into a rich text box fails
+
+Description of Problem:
+
+invoking loadFile on a rich text box does not result in the file being
+shown correctly.
+
+Steps to reproduce the problem:
+1. Run the following code:
+
+using System.Windows.Forms;
+using System.Drawing;
+
+namespace Test
+{
+ public class Test : System.Windows.Forms.Form
+ {
+ public Test()
+ : base()
+ {
+ this.Text = "My First Test";
+ this.TabIndex = 0;
+ this.Size = new System.Drawing.Size(512, 320);
+ RichTextBox richTextBox1 = new RichTextBox();
+ richTextBox1.Dock = DockStyle.Fill;
+ richTextBox1.LoadFile("C:\\fac.txt",
+RichTextBoxStreamType.PlainText);
+ this.Controls.Add(richTextBox1);
+
+ }
+
+ public static void Main(string[] args)
+ {
+ Test t = new Test();
+ Application.Run(t);
+ }
+ }
+}
+
+Actual Results: "System.Byte[]" is shown on screen.
+
+Expected Results: The contents of the file should be shown
More information about the mono-bugs
mailing list