![](../images/bullet.gif) |
Open your application in Visual Studio. The below screen will be displayed. |
|
|
|
Screen Display |
|
|
|
![](../images/Application/VG_runtime_winform_2.jpg) |
|
|
![](../images/bullet.gif) |
Expand the project node in the solution explorer. |
![](../images/bullet.gif) |
Right click on the project node and select the Add Reference option (A) from the popup menu. |
![](../images/bullet.gif) |
The Add Reference screen will be displayed as shown below. |
|
|
|
Screen Display |
|
|
|
![](../images/Application/VG_runtime_winform_1.jpg) |
|
|
![](../images/bullet.gif) |
From the tab select the 3 assemblies named Novalys.VisualGuard.Security and Novalys.VisualGuard.Security.WinForm. The third assembly depends on the type of the repository. You can choose between Novalys.VisualGuard.Security.File or Novalys.VisualGuard.Security.SQLServer or Novalys.VisualGuard.Security.Oracle. |
|
![](../images/bullet.gif) |
From the tab select the 3 assemblies named Novalys.VisualGuard.Security, Novalys.VisualGuard.Security.WinFrom, Novalys.VisualGuard.Security.File. |
|
![](../images/bullet.gif) |
You can choose between Novalys.VisualGuard.Security.File or Novalys.VisualGuard.Security.SQLServer or Novalys.VisualGuard.Security.Oracle. |
|
![](../images/bullet.gif) |
Click to continue or click to cancel the selection. |
![](../images/bullet.gif) |
On clicking the assemblies will be added. |
![](../images/bullet.gif) |
After the assemblies are added, double-click on the AppStartup.vb file if your application is developed in VB.Net or AppStartup.cs file if your application is developed in CSharp to open from the solution explorer (B). |
|
|
|
|
Screen Display |
|
|
|
![](../images/Application/VG_runtime_winform_3.jpg) |
|
|
![](../images/bullet.gif) |
Enter the following code above the AppStartup.vb or AppStartup.cs file for authenticating users. |
|
|
|
![](../images/Application/VG_runtime_winform_4.jpg) |
|
|
![](../images/bullet.gif) |
Enter the below code, if you are using the default login form provided by the Visual Guard. |
|
|
|
![](../images/Application/VG_runtime_winform_5.jpg) |
|
|
|
|
![](../images/bullet.gif) |
Once the above codes are entered, save the AppStartup.vb or AppStartup.cs file. |
|
|