[Mono-bugs] [Bug 81191][Wis] New - ListView with CheckBoxes = true and StateImageList with only one image should not remove the image...

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Mar 19 11:45:18 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 georgegiolfan at yahoo.com.

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

--- shadow/81191	2007-03-19 10:45:18.000000000 -0500
+++ shadow/81191.tmp.32646	2007-03-19 10:45:18.000000000 -0500
@@ -0,0 +1,49 @@
+Bug#: 81191
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: georgegiolfan at yahoo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ListView with CheckBoxes = true and StateImageList with only one image should not remove the image...
+
+Steps to reproduce the problem:
+1. Compile and run the following program.
+using System.Drawing;
+using System.Windows.Forms;
+class TestForm : Form {
+	static void Main() {
+		Application.Run(new TestForm());
+	}
+	public TestForm() {
+		ListView l = new ListView();
+		l.CheckBoxes = true;
+		l.View = View.Details;
+		l.Columns.Add((string)null);
+		l.Items.Add((string)null);
+		l.Dock = DockStyle.Fill;
+		l.StateImageList = new ImageList();
+		l.StateImageList.Images.Add(Icon.ToBitmap());
+		Controls.Add(l);
+	}
+}
+2. Click on the state image of the item.
+
+Actual Results:
+The image disappears.
+
+Expected Results:
+The image stays.
+
+How often does this happen? 
+Always (on the SVN version). The expected behavior is the one in Microsoft
+ .NET Framework 2.0.


More information about the mono-bugs mailing list