I wrote a Add-In for Visual Studio 2005/2008. It will prompt a window with some edit controls as child windows. But if open VS
- with a document and then open my Add-In, those child edit controls will lose input focus when type Tab/Delete/Backsapace/Ctrl-C etc.
- without any document and then open my Add-In, it is OK.
I think I found the reason. If I delete a command binding in VS, such as the command Edit.InsertTab binding with Tab, then when I type Tab in my Add-In, the input focus will not be lost.
And I tried replace my Add-In window with a modal dialog, it's surprise to me, the input focus will not be lost.
I want to know why. And I don't want to use dialog. Anybody can tell me how to resolve it. Thanks.