How to set label text on custom form from com addin

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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
 
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
 
Back
Top