StrataFrame Security Documentation Send comments on this topic.
Creating a Custom Login Form

Glossary Item Box

Creating and Implimenting a Custom Login Form

By default, the StrataFrame login form will be used to obtain access to a secured StrataFrame application. In order to change this login form, a custom login form must first be created. That login form must then be called within the AppMain.vb or program.cs file.

Creating the Custom Form

to create a custom login form:

  1. Open the desired project within Visual Studio.
  2. Right-click within the Solution Explorer and select Add->New Item...
  3. Select SF Login Form from the available options, change its Name as desired, and click Add.
  4. A form resembling the one pictured below will be created. Its look, feel, and functionality may be modified as desired to suit the needs of the application.

Calling the Login Form within AppMain.vb or program.cs

Once the custom login form has been created, it may be called within AppMain using the following code within the ShowLoginAndInitMainForm() method, where MyLoginForm is the name of your custom login form:

Calling a Custom Login Form (Visual Basic)
'-- Set the login form to your custom login form
Login.LoginFormType = GetType(MyLoginForm)

Note: If the StrataFrame Windows Application w/ Security template was used, this code will already be present, but will be commented out. To impliment the custom form, simply uncomment the line, and change 'MyLoginForm' to be the name of your custom login form.