Adding new propertypages

J

JJ

Hello NG

Using Visual Studio Team System 2008 Development Edition i am creating a
VSTO Addin for Outlook 2007
The initial code looks like this:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Xml.Linq;

using Outlook = Microsoft.Office.Interop.Outlook;

using Office = Microsoft.Office.Core;

namespace OLMailJournalize2007

{

public partial class Journalize

{

Outlook.NameSpace nameSpace;

private void ThisAddIn_Startup(object sender, System.EventArgs e)

{


}

private void ThisAddIn_Shutdown(object sender, System.EventArgs e)

{

}

#region VSTO generated code

/// <summary>

/// Required method for Designer support - do not modify

/// the contents of this method with the code editor.

/// </summary>

private void InternalStartup()

{

this.Startup += new System.EventHandler(ThisAddIn_Startup);

this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);

}


#endregion

}

}

Where do i add my property page. I have created a similary addin for Outlook
2003 where i could use the this.OptionPageAdd += bla... and then add the
property page in that method. but this way has change for OL 2007.

Can any one please guide me in the right direction.

Kind regards

Johnny E. Jensen
 
K

Ken Slovak - [MVP - Outlook]

I'm not sure about the latest versions of VSTO, but I've always used an
override for RequestCOMAddInAutomationService when I've done property pages
for Outlook in VSTO

You might want to post your query at the VSTO forum where youi'd get the
most up to date information:
http://social.msdn.microsoft.com/Forums/en-US/vsto/
 
J

J E Jensen

Hej Ken

Thanks for the link - it help
I forgot the [ComVisible(true)] on the class.

Kind regards
Johnny Jensen
 

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