M
MeAgin
Hi all,
I want to assign some values to a control in a form in its activate event.
How can I get a handle to the control in a VB.NET add-in?
I tried the following with no luck,
Dim objItem As Outlook.MailItem
objItem = VBAInspector.CurrentItem
Dim opage As Outlook.PropertyPage
opage = objItem.GetInspector.ModifiedFormPages("P.2")
Dim oControl As TextBox
oControl = opage.controls("TextBox1")
oControl.Text = "Test message"
Thanks in advance.
Nadee.
I want to assign some values to a control in a form in its activate event.
How can I get a handle to the control in a VB.NET add-in?
I tried the following with no luck,
Dim objItem As Outlook.MailItem
objItem = VBAInspector.CurrentItem
Dim opage As Outlook.PropertyPage
opage = objItem.GetInspector.ModifiedFormPages("P.2")
Dim oControl As TextBox
oControl = opage.controls("TextBox1")
oControl.Text = "Test message"
Thanks in advance.
Nadee.