Reading from App.config...

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

Reading from App.config...
 
Sanjay Varma




Posts: 38
Joined: 2008-06-16
Hi

I am using adxolformsmanager where I am using a loading a form.

I have adxolformscollectionitem1 where I set the explorermessageclass value. Now is there any way for me to read the value from the configuration file and rewrite the value for adxolformscollectionitem1.ExplorerMessageclass . When I try to register it is showing me an error "Target method Invocation error".

kindly help.

Thanks,
sanjay.

Posted 04 Aug, 2008 16:13:59 Top
Eugene Astafiev


Guest


Hi Sanjay,

You need to use the OnInitialize event of the AddinExpress.OL.ADXOLFormsManager class.

Here are the steps to get the job done:

1. You need to create an appropriate .config file.
2. In the OnInitialize event you can read a value and set the ExplorerMessageClass property.

P.S. Don't forget to set the "Copy To Output Directory" property of the .config file to "Copy always".
Posted 05 Aug, 2008 06:05:19 Top