| | | StrataFrame Beginner
       
Group: Forum Members Last Login: 10/15/2006 9:14:01 PM Posts: 5, Visits: 9 |
| | How do I use the built-in login form? |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: Today @ 10:13:07 AM Posts: 4,799, Visits: 4,768 |
| | 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. |
| | | | StrataFrame Team Member

Group: StrataFrame Users Last Login: Today @ 10:42:30 AM Posts: 222, Visits: 481 |
| 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. |
| |
|
|