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 updates made by the API will target the first OneNote window instance, even while the second window instance is active and has focus.
However, if the content of the page is manually modified from the second [active] window instance, then and only then will the API call target and update the page in the second window.
Expectation is that the updated content will be visible immediately in the active OneNote window instance
No RepliesBe the first to reply