[Mono-bugs] [Bug 79942][Cri] Changed - mono 1.2 and winforms bug

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Nov 15 09:25: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 alex.olk at googlemail.com.

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

--- shadow/79942	2006-11-15 06:54:22.000000000 -0500
+++ shadow/79942.tmp.32086	2006-11-15 09:25:25.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 79942
 Product: Mono: Class Libraries
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: Gentoo Linux
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Critical
 Component: Windows.Forms
 AssignedTo: toshok at ximian.com                            
 ReportedBy: xalldux at gmail.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -65,6 +65,97 @@
 Additional Information:
 I think it's because of one of the libraries mono depends on. But I tried
 to recompile most of them (that is that I new they could have some impact
 on it) and still nothing. Winforms with widgets like TextBox or RichTextBox
 didn't work for me for a long time.
 am using Gentoo on Pentium 4.
+
+------- Additional Comments From alex.olk at googlemail.com  2006-11-15 09:25 -------
+Please do not use pastebin for your test cases or sample code.
+
+Here is the pastebin code:
+
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+using System.IO;
+
+namespace RichTextBoxTest
+{
+        public class MainForm : System.Windows.Forms.Form
+        {
+                private System.Windows.Forms.Button button1;
+                private System.Windows.Forms.RichTextBox richTextBox1;
+       
+                public MainForm()
+                {
+                        InitializeComponent();
+                }
+               
+                [STAThread]
+                public static void Main(string[] args)
+                {
+                        Application.Run(new MainForm());
+                }
+               
+                #region Windows Forms Designer generated code
+                /// <summary>
+                /// This method is required for Windows Forms designer
+support.
+                /// Do not change the method contents inside the
+source code editor. The Forms designer might
+                /// not be able to load this method if it was changed
+manually.
+                /// </summary>
+                private void InitializeComponent()
+                {
+                        this.richTextBox1 = new
+System.Windows.Forms.RichTextBox();
+                        this.button1 = new System.Windows.Forms.Button();
+                        this.SuspendLayout();
+                        //
+                        // richTextBox1
+                        //
+                        this.richTextBox1.Dock =
+System.Windows.Forms.DockStyle.Bottom;
+                        this.richTextBox1.Location = new
+System.Drawing.Point(0, 67);
+                        this.richTextBox1.Name = "richTextBox1";
+                        this.richTextBox1.Size = new
+System.Drawing.Size(672, 348);
+                        this.richTextBox1.TabIndex = 0;
+                        this.richTextBox1.Text = "richTextBox1";
+                        //
+                        // button1
+                        //
+                        this.button1.Location = new
+System.Drawing.Point(296, 16);
+                        this.button1.Name = "button1";
+                        this.button1.TabIndex = 1;
+                        this.button1.Text = "button1";
+                        this.button1.Click += new
+System.EventHandler(this.Button1Click);
+                        //
+                        // MainForm
+                        //
+                        this.AutoScaleBaseSize = new
+System.Drawing.Size(5, 13);
+                        this.ClientSize = new System.Drawing.Size(672,
+415);
+                        this.Controls.Add(this.button1);
+                        this.Controls.Add(this.richTextBox1);
+                        this.Name = "MainForm";
+                        this.Text = "MainForm";
+                        this.ResumeLayout(false);
+                }
+                #endregion
+               
+                void Button1Click(object sender, System.EventArgs e)
+                {
+                        FileStream fileStream = new
+FileStream("sample.rtf", FileMode.Open);
+                        richTextBox1.LoadFile(fileStream,
+RichTextBoxStreamType.RichText);
+                }
+               
+        }
+}


More information about the mono-bugs mailing list