Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / August 2004

Tip: Looking for answers? Try searching our database.

How to set label text on custom form from com addin

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Software Solutions - 25 Aug 2004 12:39 GMT
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.
Signature

rgds,
Jey

Sue Mosher [MVP-Outlook] - 25 Aug 2004 17:13 GMT
See http://www.outlookcode.com/d/propsyntax.htm#unbound

Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

>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.
Software Solutions - 26 Aug 2004 01:15 GMT
thanks for above 2 replies. This will help me change the form control's
properties at run-time.

> See http://www.outlookcode.com/d/propsyntax.htm#unbound
>
[quoted text clipped - 3 lines]
> >
> > C#, outlook 2003 and a published form are used.
Software Solutions - 30 Aug 2004 08:41 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.