[Mono-bugs] [Bug 80466][Nor] New - ListBox.Height should not return the height of the displayed box (multiple of the item height plus borders) even if IntegralHeight is true

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jan 5 23:37:57 EST 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 georgegiolfan at yahoo.com.

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

--- shadow/80466	2007-01-05 23:37:57.000000000 -0500
+++ shadow/80466.tmp.31838	2007-01-05 23:37:57.000000000 -0500
@@ -0,0 +1,31 @@
+Bug#: 80466
+Product: Mono: Class Libraries
+Version: 1.2
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: georgegiolfan at yahoo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ListBox.Height should not return the height of the displayed box (multiple of the item height plus borders) even if IntegralHeight is true
+
+This program should not throw any exceptions.
+using System;
+using System.Windows.Forms;
+class Test {
+    static void Main() {
+        ListBox l = new ListBox();
+        for (int Height = 0; Height < 100; Height++) {
+            l.Height = Height;
+            if (l.Height != Height)
+                throw new Exception();
+        }
+    }
+}


More information about the mono-bugs mailing list