You can't add a .NET custom control to an Outlook form. All controls on
Outlook forms are either members of the Forms 2.0 library or are custom
ActiveX controls. You also shouldn't use the OLK* controls on a custom form
other than in a form region, they aren't tested for that and will cause
weird problems.
It doesn't matter whether or not you're using VSTO, you access any control
on a form the same way whether or not it's a custom control.
item.ModifiedFormPages("myPage").Controls.Item("my Control").
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"sd" wrote in message
ups.com...
hi!
1.is it possible to place .NET custom control on custom form(message/
contact) in outlook 2003 & 2007?(as it is not listed in additional
controls when designing form,THOUGH it is registered using regsvr32)
What extra steps r required in order to list it in additional
controls?
2.How to access Custom control built in vb placed on form region in
outlook 2007 from VSTO addIn?I was able to access OLk ctrls on Form
region in VSTO addin.I want to access custom controls custom
properties(getdata/setdata) in VSTO Addin?how to accomplish this using
vb.net
THanks!