![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Outlook 2007, VS2008 with VSTO
I know about creating form regions, associating them with custom message classes, adding controls to them, using the FormRegionShowing event to fill the controls with data and so forth. I'm having difficulty making some fundamental connection that I'd appreciate pointers to information about. I have buttons on the ribbon that are going to take action with the information that's in the controls on the formregion. I need to get to the controls to collect the data in them and save it off (in this particular case, they're going to be sent to a database via a web service). In the button click event handler, how do I get a hold of the object handle for the form region? I thought about traversing the object hierarchy from the ActiveInspector and that does lead to the ModifiedFormPages property (holding a Pages) collection but when I check that property within the event handler I find it's got a count of 0 even though I have a postItem with a my form region showing. So I'm kind of scratching my head about how to traverse down the object hierarchy to the form region. Should I take an alternative path and call the Close method on the active inspector and hang my data collection and saving work in the FormRegionClosed event? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Form Region cannot be opened | shubhangi | Add-ins for Outlook | 3 | April 18th 08 03:11 PM |
Form Region below Send Button | Vela | Add-ins for Outlook | 4 | January 25th 08 09:15 PM |
'adjoining' form region | Alan | Outlook - Using Forms | 1 | May 29th 07 06:42 PM |
Communicate with a Form Region | Vbasiccode | Outlook - Using Forms | 5 | May 9th 07 11:51 PM |
only one instance of form region is displayed | Nikolas | Outlook - Using Forms | 4 | October 6th 06 04:37 PM |