A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Displaying popup when composing a mail item.



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 14th 07, 12:54 PM posted to microsoft.public.outlook.program_addins
Mohit
external usenet poster
 
Posts: 6
Default Displaying popup when composing a mail item.

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  
Old March 17th 07, 06:21 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Displaying popup when composing a mail item.

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 09:15 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.