Tutorial :Remember me option for outlook addin



Question:

How can i create "Remember me" option for outlook addin.(In textBox) I don't want to connnect it to the database. I just want to save the user credentials on his/her computer when he/s login to the outlook addin. This addin will connect the user to the site by using web services.


Solution:1

For user/app specific registry access you can use the following functions:

Application.UserAppDataRegistry.SetValue  

and

Application.UserAppDataRegistry.GetValue  


Solution:2

You can use CustomDocumentProperties available on the active project to store and retrieve user properties.

DocumentProperties docProps = ( DocumentProperties )this.Application.ActiveProject.CustomDocumentProperties;  Microsoft.Office.Core.DocumentProperty projNameProp = docProps.Add( builtinPropertyName, false, Microsoft.Office.Core.MsoDocProperties.msoPropertyTypeString, value, missing );  projNameProp.Value = value;  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »