Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Getting Window Owner in .NET

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Getting Window Owner in .NET

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

regards
KM
-----Original Message-----
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
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
help list rooms by service owner NICK Excel Worksheet Functions 5 June 8th 09 04:22 PM
how do I set the Owner in a spreadsheet doodlebugsr Excel Discussion (Misc queries) 3 May 28th 09 12:02 AM
how can I check the current owner of the file stored in a common D INRIDisciples Excel Discussion (Misc queries) 0 November 28th 07 02:07 PM
The window opens in a smaller window not full sized window. Rachael Excel Discussion (Misc queries) 0 November 7th 06 09:04 PM
Sheet locked by owner Duane Excel Programming 1 November 21st 03 03:49 PM


All times are GMT +1. The time now is 06:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"