[Mono-bugs] [Bug 78854][Nor] Changed - ListControl: DataSource should accept null value

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jul 14 07:09:55 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 unserkonig at gmail.com.

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

--- shadow/78854	2006-07-14 07:07:46.000000000 -0400
+++ shadow/78854.tmp.1185	2006-07-14 07:09:55.000000000 -0400
@@ -2,13 +2,13 @@
 Product: Mono: Class Libraries
 Version: 1.1
 OS: All
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Windows.Forms
 AssignedTo: peter at novonyx.com                            
 ReportedBy: unserkonig at gmail.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -27,6 +27,21 @@
 An exception is thrown when trying to assign null to ListBox.DataSource
 (impl provided by ListControl class).
 
 Expected Results:
 The app should run fine without any exception thrown (with DataSource set
 to null).
+
+------- Additional Comments From unserkonig at gmail.com  2006-07-14 07:09 -------
+using System;
+using System.Windows.Forms;
+using System.Collections;
+
+public class TestForm : Form
+{
+        static void Main ()
+        {
+                ListBox listbox = new ListBox ();
+                listbox.DataSource = null; // This line causes the problem
+        }
+}
+


More information about the mono-bugs mailing list