locked
[VB]Switching to OvertypeMode For My VSIX Extension RRS feed

  • Question

  • I want to switch to OvertypeMode for my extension, so I execute the Edit.OvertypeMode command in the BeforeExecute event of my CommandEvents object. However, this is causing StackOverflow exception. I am guessing that this is because it is causing the BeforeExecute event to be repeatedly triggered. However, I am having trouble detaching the handler for BeforeExecute. I want to make sure it is in OvertypeMode before I do other stuff (in case the user presses the Insert key to switch out of OvertypeMode), but because so many things involve executing commands, it seems hard to figure out how to do so much manual adding & removing of handlers. What can I do?

    Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/

    Thursday, April 11, 2019 9:17 PM