thanks for above 2 replies. This will help me change the form control's
properties at run-time.
I am having a little trouble with casting the ModifiedPage object.
what is the actual object returned by this call?
mailItem.GetInspector.ModifiedPages["message"]
I couldn't find a suitable object to cast, so that I cna then get the
control and then invoke the methods of that control.
BTW, I am usnig C# to implement this code in a com addin.
rgds,
jey
> > See http://www.outlookcode.com/d/propsyntax.htm#unbound
Sue Mosher [MVP-Outlook] - 30 Aug 2004 13:25 GMT
A VB/VBA TypeName() expression shows the page returns as a UserForm object.
Outlook uses the Forms 2.0 object library (fm20.dll) for its custom forms.
Maybe that will help.

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
>I am having a little trouble with casting the ModifiedPage object.
> what is the actual object returned by this call?
[quoted text clipped - 10 lines]
>
>> > See http://www.outlookcode.com/d/propsyntax.htm#unbound