microsoft.public.outlook.program_addins,microsoft.public.developer.outlook.addins

A

Anushya

Hi
Created an add-in for outlook. When i click the commandbar button, it
displays a form(developed in c#) and replaces outlook inbox by
displaying over the same exact co-ordinates.

Next time if i try to display any custom form, it displays but when i
try to hide the form, It displays the following error
Microsoft Outlook has encountered a problem and needs to close.

If i debug, this is the err msg.
Unhandled exception at 0x77f6f9a9 in OUTLOOK.EXE: 0xC015000F: The
activation context being deactivated is not the most recently
activated one.

Using Framework version 1.1 and outlook 2002 and windows XP.

//Declared the forms in Connect class
public frmInbox frmInbox1 = new frmInbox();
public frmSelection frmSelection1 = new frmSelection ();

//In the button click created an instance and showed it

//In Close button of each form have hidden that forms
this.topmost = false
this.visible = false

Where is the mistake?????

Pls let me know immediately...
Anushya
 

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