Working with userproperties

Add-in Express™ Support Service
That's what is more important than anything else

Working with userproperties
Best practices 
Patrick Jox




Posts: 83
Joined: 2009-05-09
Hi,
I am planning to create a Outlook contact form based applictaion, that mixes outlook custom forms and adxOlForm items. I want to let the the first page as is to presave the good functionality as e.g. resolving name and address. Then I add some adxOlForms with special functionality, that are displayed in the inspector region. On these new forms I have to display some information from userproperties.

How should I synchronize the gui controls with the corresponding userproperty? Is there any best practice or do I have to do it on each textchanged event? The problem is, that I have to force the forms dirty flag to switch to "true" so that the user will be asked if he wants to save when trying to close the application.

Any suggestions?

Kind regards
Patrick
Posted 03 Jun, 2009 06:29:28 Top
Fedor Shihantsov


Add-in Express team


Posts: 1188
Joined: 2005-01-11
Hi Patrick,

I recommend that you use each textchanged event to change a userproperty.
Also use the AddinExpress.MSO.ADXOutlookItemEvents class to handle the item's events.

The following topic may be helpful: «Help with ProcessClose event»
Posted 03 Jun, 2009 11:11:46 Top
Patrick Jox




Posts: 83
Joined: 2009-05-09
OK, thanks.

If I want my adxOlForm to be displayed on a certain custom tabpage, how can I achieve this?

Kind regards
Patrick
Posted 03 Jun, 2009 11:55:14 Top
Andrei Smolin


Add-in Express team


Posts: 14114
Joined: 2006-05-11
Patrick,

ADXOlForm cannot be embedded into a tab; it's embedded into the form instead. If you are able to identify that your tab is opened/closed then you can show/hide your form programmatically.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 03 Jun, 2009 12:13:08 Top