You are here: Office-Outlook.com  / Outlook Forum

How to get label control properties using LateBinding.

Home » Outlook addins and plugins development » Developer Outlook forms
How to get label control properties using LateBinding. [message #373] Thu, 25 May 2006 12:56
rbshrestha
Messages: 1
Registered: May 2006
Junior Member
Hi!
Please review the following code,
MSForms.Controls controls =
(MSForms.Controls)myPageType.InvokeMember("Controls",
BindingFlags.GetProperty | BindingFlags.IgnoreCase, null, myPage, myParams);
MSForms.Control lblFullName = (MSForms.Control)controls.Add("Forms.Label.1",
"lblFullName", true);

My problem is how can I access Caption property for Label control. I am
using latebinding. I have seen this done using Visual Basic but i need it
with C#.

Thank you!
Previous Topic:Custom form Resize
Next Topic:Outlook 2007 Beta Question
Goto Forum: