[MWF] Don't try to remove non-child control (#19818)
authorEberhard Beilharz <eb1@sil.org>
Thu, 15 May 2014 15:28:57 +0000 (17:28 +0200)
committerEberhard Beilharz <eb1@sil.org>
Thu, 15 May 2014 15:28:57 +0000 (17:28 +0200)
commit29d8e275d566f7f7eccbf7fe7169e6df51994be8
tree30de07ef775282ec963d4f462ce0ad4250ccab22
parent2b1086994f8240fdc874a802b7764f88d23d3ebb
[MWF] Don't try to remove non-child control (#19818)

When removing a control from a controls collection we have to
check that the control is part of the collection. Otherwise
we shouldn't do anything.
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs