private void comboBoxTarget_SelectedValueChanged(object sender, EventArgs e) { if (null != propertyGridHostProperties.SelectedObject) { COMObject oldSelectedObject = propertyGridHostProperties.SelectedObject as COMObject; propertyGridHostProperties.SelectedObject = null; propertyGridHostProperties.Refresh(); oldSelectedObject.DisposeChildInstances(); } propertyGridHostProperties.SelectedObject = ApplicationHandler.GetSelectedProxy(comboBoxTarget.SelectedIndex); }