Hi,
I have an application that I wrote with VB.Net 2008
This application needs to use drag and drop, File IO actions.
Lately I noticed a problem with it when the UAC (User Access Control) is turn on (On its default mode)
I use to copy a file to a folder that I create at:
Code:
System.Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
But when I want to delete this file I get an error about access is denied.

I try to run the application as administrator and this actually solve the issue but then the drag and drop not working.

Can someone help me to find a solution for each problem:
  1. How to avoid such of access denied issues.
  2. If run as administer why the drag and drop not working?


thanks