How to add custom PropertyPage in C#

P

Paul Keeley

I am a newbie at C# and extending Outlook and am stuck in adding a custom
PropertyPage. The page appears correctly and the events are handled but it
fails when it calls OnStatusChange() because the Parent property is set to
null so I cannot set the Outlook.PropertyPageSite. I add the form using
this code:
public void OptionsPagesAdded(Outlook.PropertyPages Pages)

{

Pages.Add("ESPmailstore2.PropertyPage", "ESP+mailstore");

}



and the form class is defined as

public class PropertyPage : System.Windows.Forms.UserControl,
Outlook.PropertyPage





What am I doing wrong? What more do I need to do?

Thanks,

Paul Keeley
 

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