12-04-23, 02:10 AM
- Open your VB.NET project in Visual Studio.
- In Solution Explorer, right-click on your project and select "Add" > "New Item".
- Select "Application Manifest File" and click "Add".
- In the manifest file, locate the following section:
كود :
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
- Change "asInvoker" to "requireAdministrator":
كود :
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
- Save the manifest file and rebuild your project.

