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:

In computing, a regular expression is a specific pattern that provides concise and flexible means to “match” (specify and recognize) strings of text, such as particular characters, words, or patterns of characters. Common abbreviations for “regular expression” include regex and regexp.

Basic Concepts

A regular expression, often called a pattern, is an expression that specifies a set of strings. To specify such sets of strings, rules are often more concise than lists of a set’s members. For example, the set containing the three strings “Handel”, “Händel”, and “Haendel” can be specified by the pattern H(ä|ae?)ndel (or alternatively, it is said that the pattern matches each of the three strings). In most formalisms, if there exists at least one regex that matches a particular set then there exist an infinite number of such expressions. Most formalisms provide the following operations to construct regular expressions.