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: 3.2.912.1 (3.2.912.01)
Syntax
Examples
The following example displays how to set the header description of the login form and how to set the default username.
CopyC#
CopyVB.NET
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()); }
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