map_con_main.Map.ClearSelection(); map_con_main.ActiveView.Refresh();
I do not know way,when open the map document,I found that one of the feature is holding the 'selected' status.I try everything I can to unselect the feature which result in flickering the all of the form.So what can I do now?Thanks very much.
Here is what I did.
Add the code:map_con_main.Map.ClearSelection(); map_con_main.ActiveView.Refresh();
to the method "FormMain_Shown"an "OnAfterScreenDraw"and so no.
If calling ClearSelection and Refresh doesn't clear the selection then a) the feature isn't actually selected (maybe it's a graphic element or something that makes it appear to be selected?) or b) map_con_main.Map isn't referencing the map you think it's referencing. Is this running in ArcMap? If yes, then what happens if you click the ArcMap Clear Feature Selection button on the toolbar?
Try map_con_main.ActiveView.PartialRefresh esriViewGeoSelection, Nothing, Nothing. This should only refresh your selection features.