I have an addin with userinterface (usercontrol in a dockable window) that launches a command that takes a long time to run in Inventor and I don't want it to be possible to get interrupted by an user pressing the escape key (ascii 27). I've tried to set UserInteractionDisabled = true
but it looks like the escape key slips throught the net.
Also tried to subscribe to the keypress event, but no luck either.
Any one who can tell me how to block/disable the escape key?
How do you start your command? Probably your addin should define an own Inventor-command that will run without the possibilty to be interrupted via escape. I would think, that the keypress event will work for your usercontrol only, so that won't do.