PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Form Programming How to set label text on custom form from com addin

Reply

How to set label text on custom form from com addin

 
Thread Tools Rate Thread
Old 25-08-2004, 12:39 PM   #1
=?Utf-8?B?U29mdHdhcmUgU29sdXRpb25z?=
Guest
 
Posts: n/a
Default How to set label text on custom form from com addin


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.
--
rgds,
Jey
  Reply With Quote
Old 25-08-2004, 05:13 PM   #2
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: How to set label text on custom form from com addin

See http://www.outlookcode.com/d/propsyntax.htm#unbound

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


"Software Solutions" <SoftwareSolutions@discussions.microsoft.com> wrote in
message news:F3E58674-1C70-42CC-B0A4-08D695F1D96C@microsoft.com...
>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.
> --
> rgds,
> Jey



  Reply With Quote
Old 26-08-2004, 01:15 AM   #3
=?Utf-8?B?U29mdHdhcmUgU29sdXRpb25z?=
Guest
 
Posts: n/a
Default Re: How to set label text on custom form from com addin

thanks for above 2 replies. This will help me change the form control's
properties at run-time.

"Sue Mosher [MVP-Outlook]" wrote:

> See http://www.outlookcode.com/d/propsyntax.htm#unbound
>
> --
> Sue Mosher, Outlook MVP
> Author of
> Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>
> "Software Solutions" <SoftwareSolutions@discussions.microsoft.com> wrote in
> message news:F3E58674-1C70-42CC-B0A4-08D695F1D96C@microsoft.com...
> >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.
> > --
> > rgds,
> > Jey

>
>
>

  Reply With Quote
Old 30-08-2004, 08:41 AM   #4
=?Utf-8?B?U29mdHdhcmUgU29sdXRpb25z?=
Guest
 
Posts: n/a
Default Re: How to set label text on custom form from com addin

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

> "Sue Mosher [MVP-Outlook]" wrote:
>
> > See http://www.outlookcode.com/d/propsyntax.htm#unbound


  Reply With Quote
Old 30-08-2004, 01:25 PM   #5
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: How to set label text on custom form from com addin

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
http://www.outlookcode.com/jumpstart.aspx


"Software Solutions" <SoftwareSolutions@discussions.microsoft.com> wrote in
message news:A33E17E6-09AF-424D-BFC1-2C039F374F7D@microsoft.com...
>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
>
>> "Sue Mosher [MVP-Outlook]" wrote:
>>
>> > See http://www.outlookcode.com/d/propsyntax.htm#unbound

>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off