Allows to authenticate a user and load the Visual Guard permissions for the application.
Namespace: Novalys.VisualGuard.Security.WinFormAssembly: Novalys.VisualGuard.Security.WinForm (in Novalys.VisualGuard.Security.WinForm.dll) Version: 2017.0.101.17 (2017.0.101.17)
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 |
---|---|
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 |
---|---|
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
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