public void DoRemoveFavorite() { try { // Call superclass to not close the typelib base.RemoveLogicalNode(); _typeLib.ForgetMe(); // This goes back into the registered tree now ComSupport.RegisteredTypeLibNode.InvalidateNode(); } catch (Exception ex) { ErrorDialog.Show(ex, "Error Removing Favorite " + GetName(), MessageBoxIcon.Error); } }