H
Hans Merkl
Hi,
I am writing an Excel addin with C#. I have some ActiveX objects embedded
within the spreadsheet and when the user clicks on one of them I want to
show a context menu.
Now the problem is that ContextMenu.Show() needs a Control object as
parameter but in my scenario there is no Winforms control object. I have
the HWND window handle of the ActiveX object but I can't figure out how to
pass it to the ContextMenu object.
Any ideas how to do this?
Thanks
Hans Merkl
I am writing an Excel addin with C#. I have some ActiveX objects embedded
within the spreadsheet and when the user clicks on one of them I want to
show a context menu.
Now the problem is that ContextMenu.Show() needs a Control object as
parameter but in my scenario there is no Winforms control object. I have
the HWND window handle of the ActiveX object but I can't figure out how to
pass it to the ContextMenu object.
Any ideas how to do this?
Thanks
Hans Merkl