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