Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

disable CTRL+T in ArcGIS Desktop in Extension

$
0
0
am building an ARCGIS desktop Extension, with arcobjects .NET. I want to disable showing attribute table (because I want to force the editing through custom forms). So, I disable it from the context menu, but still the user can click the layer and press (CTRL + T) to show the attribute table.

I tried to use this code

IAcceleratorTable acceleratorTable = (IAcceleratorTable) Application.Document.Accelerators;
IAccelerator keyStroke = (IAccelerator) acceleratorTable.FindByKey(
(int) Keys.T, true, false, false);
keystroke.Delete();
That didn't work.

Is there a way to delete that accelerator (CTRL + T)?

Thanks

Viewing all articles
Browse latest Browse all 1374

Trending Articles