hi

am developing a Outlook form using csharp, if am click Get contact button contact in the outlook are displayed in the 'datagrid view' . Its working well. at the time am getting a error message as

"A program is trying to access e-mail addresses you have stored in Outlook.
Do you want to allow this? If this is unexpected, it may be a virus and you
should choose "No".
(ChkBox) Allow access for (x minute)
Yes / No
******


I click 'Yes' means contacts details are displayed in the datagrid view. I want to disable the these message alert. how to solve this any one can help me. its very urgent

If you have an Anti-Virus software installed which is always upto date, then you may not receive that message.
Another way to disable it would be by opening up Outlook, Goto 'Tools' menu and select 'Trust Center'. Select 'Programatic Access' and select the third option - 'Never warn me about suspicious activity'.

This will disable that message you receive however it may be risky keeping it that way permanently.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.