Confued as to how to add handler to MenuItem

Thanks
Basically what I do too.
I’ll take this offline rather than hijack this thread further.

Back on topic, I found that having the handlers in the window made it tricky to ensure that RemoveHandler was being called reliably and in pairs.
(Add twice = error.
Remove when there is no active handler = error.
There is no ‘alreadyhashandler’ method or similar)

So I have placed it in the App Open/Close events as per the example, and my handler now refers to document window references. All working.

ps: A rogue constructor IS the problem for my Open event issue (Thanks Norm!)… dunno how it got there …
(I probably pasted a Constructor () method into the wrong object way back when)

1 Like