[Mono-bugs] [Bug 78889][Nor] New - Changing Font of a MultiLine TextBox changes it's Height
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Jul 18 09:10:59 EDT 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 kuba.brecka at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78889
--- shadow/78889 2006-07-18 09:10:59.000000000 -0400
+++ shadow/78889.tmp.8439 2006-07-18 09:10:59.000000000 -0400
@@ -0,0 +1,57 @@
+Bug#: 78889
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com
+ReportedBy: kuba.brecka at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Changing Font of a MultiLine TextBox changes it's Height
+
+Description of Problem:
+Using mono 1.1.16.1, Windows XP, also on Linux. The behaviour when changing
+font on a TextBox, which has MultiLine = true, differs from MS.NET
+Framework. On mono the TextBox.Height is reset to default for the selected
+font, whether on MS.NET the Height remains uunchanged.
+
+Reproduce code:
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+namespace MonoTest16
+{
+ class Form1 : Form
+ {
+ static void Main()
+ {
+ Application.Run(new Form1());
+ }
+
+ public Form1()
+ {
+ TextBox T = new TextBox();
+
+ T.Font = new System.Drawing.Font("Courier New", 7F,
+System.Drawing.FontStyle.Regular);
+ T.Location = new System.Drawing.Point(0, 39);
+ T.Multiline = true;
+ T.Size = new System.Drawing.Size(200, 100);
+ MessageBox.Show(T.Height.ToString());
+
+ T.Font = new System.Drawing.Font("Tahoma", 12f,
+System.Drawing.FontStyle.Regular);
+ MessageBox.Show(T.Height.ToString());
+
+ this.Controls.Add(T);
+ }
+ }
+}
More information about the mono-bugs
mailing list