How to get an IWin32Window for Excel embedded in Word/PowerPoint

A

ARHangel

I have an add-in written in C# and i'm trying to show a windows form so that
will not get hidden.

I know that the Application has a Handle that I can use to show the form,
but if I try this with excel embedded my form still gets hidden.

Is there a way to get the Handle of the object that contains the excel?

Also I have tried to get the Container from the Workbook but an exception is
thrown:
COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top