How to trap keypress event in MSword using VSTO?

前端 未结 1 1381
清酒与你
清酒与你 2020-12-20 06:38

I am new to VSTO VB.Net programming. and I am developing a word application level Addin and want to trap keypress event. I have tried various codes of hooking but none is wo

相关标签:
1条回答
  • 2020-12-20 07:02

    Your question is a possible duplicate of:

    • How to get the "KeyPress" event from a Word 2010 Addin (developed in C#)?
    • How to raise an event on MS word Keypress
    • Capturing keydown event of MS Word using C#

    ... however, the answer remains the same: you simply can't :)

    In my answer to the last of the questions listed above I explain the reason behind this in a bit more detail, and also covers a possible alternative solution involving the WindowSelectionChange event.

    0 讨论(0)
提交回复
热议问题