How to set label text on custom form from com addin

S

Software Solutions

I have to set the text property of the lable control placed on a custom form.
How do I access this from a com addin.

C#, outlook 2003 and a published form are used.
 
S

Software Solutions

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
 
S

Sue Mosher [MVP-Outlook]

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.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Software Solutions said:
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
 

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