Getting Window Owner in .NET

B

Backslider

I'm programming Excel in .NET (using VSTO) and I want to pop up a
messagebox or form. How can I pass the Excel window as the owner
window in the first argument to the Show/ShowDialog method? It wants
an IWin32Window. How do I get that for the Excel application?

thanks
Backslider
 
K

KM

Try using
var = Application.Dialogs(xlDialogOpen).Show
If Not var Then Exit Sub

regards
KM
 

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