On 09 Sep 2004 16:51:36 +0200,
hi***************@gmx.at (Herfried K.
Wagner [MVP]) wrote:
* BluDog <ne**@nospam.bludog.net> scripsit: I have a basic UserControl that i want to be able to prevent controls
being added to, i was thinking about catching the ControlAdded event
and then removing the control immediatley after, but was wondering if
there was a better approach.
Just FMI: Why?
Im a writing a control from scratch that behaves a little like a
treeview, and accepts only controls of a certain type via a collection
property. I want controls only to be added and removed through the
collection. To be honest it makes no odds as the code is only for my
use, but i get these niggly little 'wonder ifs' that i have to
explore!