![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I am creating Outlook AddIn using C#, VSTO 2005 SE and outlook 2003.
I have added two buttons on toolbar in the inspector window which is opened after the user had pressed New button to compose a new mail. Here while composing the mail editor type is Word Mail. When user clicks my custom button of my toolbar while composing the new mail I wrote the code for displaying a Custom Form. But when I run this only my Form's border appears not the controls contained in the form. And moreover Application Hangs!!! Nothing seems to happen. Same custom form works correctly when a mail item is opened to read and button is clicked. But it is not working while writing/composing a new mail item. I am not getting why it is occuring and how can I display my popup correctly? Are there some other approaches to accomplish this? |
Ads |
#2
|
|||
|
|||
![]()
The form is being displayed modally behind your WordMail window. That makes
the app and Outlook appear to hang. That's my guess. WordMail is a subclassed instance of Word. That causes all sorts of problems with window z-orders and what's the parent of a modal form. In this case it's the Outlook primary Explorer, which is why the window appears behind the WordMail window, which is WM_TOPMOST. You can try using a complicated set of Win32 API calls to set the foreground window, that's about it. The only other way is to show the Explorer window and then show yours, then when it's closed show the WordMail window again. That's messy looking though. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Mohit" wrote in message oups.com... I am creating Outlook AddIn using C#, VSTO 2005 SE and outlook 2003. I have added two buttons on toolbar in the inspector window which is opened after the user had pressed New button to compose a new mail. Here while composing the mail editor type is Word Mail. When user clicks my custom button of my toolbar while composing the new mail I wrote the code for displaying a Custom Form. But when I run this only my Form's border appears not the controls contained in the form. And moreover Application Hangs!!! Nothing seems to happen. Same custom form works correctly when a mail item is opened to read and button is clicked. But it is not working while writing/composing a new mail item. I am not getting why it is occuring and how can I display my popup correctly? Are there some other approaches to accomplish this? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
can't open outlook email. popup message. item not downloaded | old boy | Outlook - General Queries | 1 | September 30th 06 05:42 PM |
Outlook not displaying mail | [email protected] | Outlook - General Queries | 1 | September 10th 06 03:15 PM |
add dictionary featr for synonymous words while composing a mail | SAN | Outlook - Using Forms | 0 | May 16th 06 11:28 AM |
how do I turn off the e-mail popup notification? | Damian | Outlook - General Queries | 1 | April 3rd 06 04:52 PM |
Why can't I use my e-mail signatures when composing a calender mes | crbstorm | Outlook - Calandaring | 0 | March 22nd 06 06:15 PM |