place .NET custom control on custom form in Outlook 2003 and Outlook 2007
Thanks!
I've one more question-I've designed form region for my custom form &
hook up my addin to this form region.(I referred
TravellAgencyAddInVB_VSTO)
now the form region adjoined to my custom form is shown when I
compose.But I want to access the ctrl values on this form region in
ItemSend event.How to get this?
In TravellAgencyAddInVB_VSTO addin they r accessed initially when
displaying the region(In MailPreviewFormRegionWrapper class)please
give some sample code snippet or any link that can be helpful.Thanks
again
On Oct 8, 8:07 pm, "Ken Slovak - [MVP - Outlook]"
wrote:
You can't add a .NETcustomcontrol to anOutlookform. AllcontrolsonOutlookforms are either members of the Forms 2.0 library or arecustom
ActiveXcontrols. You also shouldn't use the OLK*controlson acustomform
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 acustomcontrol.
item.ModifiedFormPages("myPage").Controls.Item("my Control").
--
Ken Slovak
[MVP -Outlook]http://www.slovaktech.com
Author: Professional ProgrammingOutlook2007
Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm
"sd" wrote in message
ups.com...
hi!
1.is it possible to place .NETcustomcontrol oncustomform(message/
contact) inoutlook2003 & 2007?(as it is not listed in additional
controlswhen designing form,THOUGH it is registered using regsvr32)
What extra steps r required in order to list it in additional
controls?
2.How to accessCustomcontrol built in vb placed on form region in
outlook2007 from VSTO addIn?I was able to access OLk ctrls on Form
region in VSTO addin.I want to accesscustomcontrolscustom
properties(getdata/setdata) in VSTO Addin?how to accomplish this using
vb.net
THanks!- Hide quoted text -
- Show quoted text -
|