Allows to authenticate a user and load the Visual Guard permissions for the application.

Namespace:  Novalys.VisualGuard.Security.WinForm
Assembly:  Novalys.VisualGuard.Security.WinForm (in Novalys.VisualGuard.Security.WinForm.dll) Version: 3.2.912.1 (3.2.912.01)

Syntax

C#
public sealed class VGLoginForm : Form
Visual Basic (Declaration)
Public NotInheritable Class VGLoginForm _
	Inherits Form

Examples

The following example displays how to set the header description of the login form and how to set the default username.
CopyC#
Novalys.VisualGuard.Security.WinForm.VGLoginForm login = new Novalys.VisualGuard.Security.WinForm.VGLoginForm();
login.HeaderDescription = login.HeaderDescription + Environment.NewLine + "(the default user is \"jsmith\" and its password \"pwd\")";
login.UserName = "jsmith";
if (login.ShowDialog() == DialogResult.OK)
{
    login.Dispose();
    Application.Run(new MDIForm());
}
CopyVB.NET
Dim login As New Novalys.VisualGuard.Security.WinForm.VGLoginForm
login.HeaderDescription = login.HeaderDescription + Environment.NewLine + "(the default user is ""jsmith"" and its password ""pwd"")"
login.UserName = "jsmith"
If login.ShowDialog() = DialogResult.OK Then
    login.Dispose()
    Application.Run(New MDIForm)
End If

Inheritance Hierarchy

System..::.Object
  System..::.MarshalByRefObject
    System.ComponentModel..::.Component
      System.Windows.Forms..::.Control
        System.Windows.Forms..::.ScrollableControl
          System.Windows.Forms..::.ContainerControl
            System.Windows.Forms..::.Form
              Novalys.VisualGuard.Security.WinForm..::.VGLoginForm

See Also