public void FlashObject() { try { LayerObject selectedItem = this.cboLayer.SelectedItem as LayerObject; IFeatureLayer layer = selectedItem.Layer as IFeatureLayer; if (layer != null) { Flash.FlashSelectedFeature(this.m_pActiveView.ScreenDisplay, layer); } } catch { } }