In this tutorial, you will learn how you can run your application as an administrator automatically using Visual C#2012. Start by opening your C# Windows forms application. Right click on your project name in the solution explorer and add a new item… Select an application manifest file: Click add. A new tab should open up, most of the codes in it are not important to us. There is one line however that we need to change: