aalavi21

Delete map surrounds by Del button ?!!

Discussion created by aalavi21 on Apr 26, 2014
Latest reply on Apr 28, 2014 by Neil
Hi all
My question sounds simple but i couldn't find a working solution for it.
There is PageLayoutControl and some tools for adding north arrow, scalebar, ... to this layout. There is also an ordinary select tool (esriControls.ControlsSelectTool) which allows for selecting elements and resizing and moving them.
Now, i wanna allow user to delete selected elements by pressing Del button. I know how to access selected elements and then deleting them but i don't know where to place that code. In PageLayoutControl_OnKeyUp or PageLayoutControl_OnKeyDown? none of them works.

Any idea?

Best Regards

Outcomes