Getting the PropertyPageSite for a Property Page

B

Ben M

I having a bit of a saga trying to retrieve a reference to the
PropertyPageSite of a PropertyPage which I have added to a folder in
Outlook. I am using C# and an Interop version of the Outlook library. I
have tried the most sophisticated solution I could find and still got
nowhere (the solution can be found at (watch for line wraps)):
http://groups.google.com/groups?hl=...opLGfNbDHA.2344%40TK2MSFTNGP12.phx.gbl&rnum=7

The idea is to retrieve a reference to the Container in which the
PropertyPage sits. This should be accessible via the Parent property of the
PropertyPage, but I have found that this value has been null. I then tried
the above solution which involves using reflection to discover the
ActiveXInstance for the PropertyPage and calling the GetClientSite method.
Unfortunately, the ClientSite attribute is also set to null, so it is no use
to retrieve that either.

I am wondering whether anyone has any clue why these values for the parent
container could possibly be set to null, or whether it is possible to
retrieve a reference to the PropertyPageSite in another way.

Thanks very much for any help,
Ben
 

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