Question

I need to know if there is any possibility to create a completely new event or may I'm blind and there is one...

Exactly I have a button in my word ribbon > after a click on it the user should click anywhere in the document to create a richtextbox (the windows.forms) and for this I need the click position.

Was it helpful?

Solution 2

I solved my problem with a TextBox over the whole page. With this Box I created a click event and so i got the exact position. I know this isn't the best possibility but it worked for me.

OTHER TIPS

It seems that there is no such event in a Word add-in. See: Mouse Events in Word 2010 application level AddIn

As mentioned in that post, the use of WinApi could be an approach.

Or maybe the "Document.SelectionChange Event" could help with this problem.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top