How to add custom PropertyPage in C#

  • Thread starter Thread starter Paul Keeley
  • Start date Start date
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
 
Back
Top