By Jason Holden - 10/12/2006
How do I use the built-in login form?
|
By Trent L. Taylor - 10/12/2006
The latest update on the website actually has a template to help you build a custom logon form. The template was posted on the 9th so if you have not installed since then, download the latest version and the template will be available once you install. Just go to the My Account area of the website to get the latest version.
|
By Dustin Taylor - 10/13/2006
Just to expand on Trent's post:
To show the default login form, you may call the Login.ShowLoginAndAuthUser() method, which is found within the MicroFour.StrataFrame.Security namespace. The method accepts a Boolean parameter to determine whether or not to show the Cancel button on the form.
Typically, this method is called within the ShowLoginAndInitMainForm() method found in AppMain.vb (Visual Basic) or program.cs (C#):
Private Shared Sub ShowLoginAndInitMainForm(ByVal e As ShowLoginAndInitFormEventArgs)
'-- Show the login form and authenticate the user
e.ShowMainForm = Login.ShowLoginAndAuthUser(True)
End Sub
For more info, the help download currently available under the My Account area has a topic on Showing the Initial Login form (Programmatic Access->Required AppMain.vb(Program.cs) Code), as well as a topic on Creating a Custom Login Form.
The next help update will have a set of topics on the Login form class' Methods, Properties, and the LoginResult enumeration.
|
|