public CNativeWindowListener(TestForm parent) { parent.HandleCreated += new EventHandler(this.OnHandleCreated); parent.HandleDestroyed += new EventHandler(this.OnHandleDestroyed); this.parent = parent; }