I believe this is what you are trying to do, you will need to reference the appropriate objects in your code as well public IPoint getpointclicked(IMxApplication mxapp, ISymbol symbol) { IAppDisplay appdisplay = mxapp.Display; IScreenDisplay screendisplay = appdisplay.FocusScreen as IScreenDisplay; IRubberBand rubberband = new RubberPoint(); IGeometry geo = new Point(); Boolean result = rubberband.TrackExisting(screendisplay, symbol, geo); if (result) { IPoint point = rubberband.TrackNew(screendisplay, symbol) as IPoint; return point; } return null; }
... View more