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: 2016.0.105.16 (2016.0.105.16)

Syntax

C#
public sealed class VGLoginForm : Form
Visual Basic
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.
C# Copy imageCopy
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());
}
Visual Basic Copy imageCopy
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