Forum Discussion
stemarcoh
Aug 17, 2026Tin Contributor
OneNote Interop API targets wrong window instance
C# with .NET Framework 4.8, Microsoft OneNote Open up two OneNote windows viewing the same page. From the second window, invoke an add-in command that uses the managed Interop API. Any queries or u...
saleha15
Aug 21, 2026Brass Contributor
This sounds like a limitation of how the OneNote Interop API resolves the application/page context rather than a normal focus issue. The managed Interop API may not necessarily bind its operations to the currently focused OneNote window, especially when the same page is open in multiple windows
stemarcoh
Aug 21, 2026Tin Contributor
Yes, exactly. Thanks for this. I have at least a few users that normally open the same page in two, even three windows while working on large documents. Being able to affect change when and where they are focusing their attention is important to the intuitive flow of the add-in.