protected void IntelliMouseControl_ParentChanged(object sender, EventArgs e) { if (CurrentParent != null) { CurrentParent.MouseDown -= Parent_MouseDown; } if (Parent != null) { Parent.MouseDown += Parent_MouseDown; Deactivate(); } }