* Control.cs: throw an ArgumentException if a toplevel control is
commit8dae7307e894c8084c0929c7565d02bbaba18427
authorChris Toshok <toshok@novell.com>
Tue, 23 Jan 2007 18:48:00 +0000 (23 18:48 -0000)
committerChris Toshok <toshok@novell.com>
Tue, 23 Jan 2007 18:48:00 +0000 (23 18:48 -0000)
treeee2e71aa8786ef0c98fdef1e295a086d1de6dd67
parent7e7a261fa1bd36cca1f33cced78efe8a53e850a2
* Control.cs: throw an ArgumentException if a toplevel control is
added to our control collection from ControlCollection.Add, as
well as from ControlCollection.IList.Add.  This fixes the
ControlSetTopLevelTest.TestTopLevelAdd unit test.

Also, in ControlCollection.IList.Add, don't through an
ArgumentNullException, throw an ArgumentException, when value ==
null.  This matches MS.

2007-01-23  Chris Toshok  <toshok@ximian.com>

svn path=/trunk/mcs/; revision=71539
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs