Communicate with a Form Region

G

Guest

I am using Business Contact Manager.
I have creatred a "Seperate Region" called "Group" tied to "Accounts"
"IPM:Contact"
This works fine.

Now a have a second windows application that makes reference to the office
core and outlook 12 libraries. In this application i can communicate with
"UserProperties"
this will let me talk to and UDFs that are tied to the "Account" Form, but
what i need to do and can't is find a way to talk to the Region (Group Form)
that is tied to the Account.

I hope i have said all this correctly.

Any help or suggestions would be great.

Summary: I have a application that needs to pass in data to a Form Region in
Outlook.
 
S

Sue Mosher [MVP-Outlook]

The easiest way to handle this would be to make sure the controls that you want to pass data to are bound to Outlook properties. THen, you can set the property values through the UserProperties collection.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

Thank you at least i know it can be done!
However i am unfortunatly try to learn a year of info in a week (as usual).
So if you could give me direction on how to or where to look to find out how
to bind a Seperate region to user properties of the Account form, i would
appreciate it.

Thanks for your continued help.
 
S

Sue Mosher [MVP-Outlook]

It's no different from binding a control on a traditional Outlook form. In the Outlook form designer where you're working on the region, right-click each control, choose Properties, and switch to the Value tab. Click New to create a new property and bind it to that control. Repeat for each control.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

So far everything is great.
One last issue.
I would like to put a grid on the form and talk to it, but since their
doesn't seem to be one i am tryiing to use a list box.
When i set the list box with no values, then biind it to 'Benefits'
Property (text type) then pass in the string "Life;Health;Dentail" nothing
happens nothing gets displayed in the list box, do you know why?
 
S

Sue Mosher [MVP-Outlook]

Pass in the string how? To fill the rows of a list box programmatically, you would need to work with the control object, setting its List property or using the AddItem method. To do that, you need to implement the FormRegionStartup interface, as shown in the article at http://msdn2.microsoft.com/en-us/library/ms788695.aspx.

Alternatively, set the rows using the Possible Values property on the same control Properties dialog where you bound the Outlook property.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top