A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Getting a handle on a form region



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old October 21st 08, 12:58 AM posted to microsoft.public.outlook.program_addins
Mark Lawrence[_2_]
external usenet poster
 
Posts: 1
Default Getting a handle on a form region

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 09:15 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.