> For the complete documentation index, see [llms.txt](https://trinityseal.gitbook.io/trinityseal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trinityseal.gitbook.io/trinityseal/main/premade-form.md).

# Premade Form

How to initialize the premade form

{% hint style="success" %}
This form already contains login, register and redeem tokens pages and will automatically grab variables after login and run security checks.
{% endhint %}

#### InitializeForm should be called as soon as the first form loads, I recommend setting your forms properties so that visible is false and opacity is 0%

{% code title="C#" %}

```csharp
using TrinitySeal;

public Form1() {
InitializeComponent();
SealCheck.HashChecks();

if (SealCheck.isValidDLL) {
//new Form2() can be changed to the form that you want to show after login
//SealColours.Red can be changed to any colour that you like
//The form will automatically carry out all tasks such as grabbing variables and showing then next form is login is successful, or if freemode is enabled
TrinitySeal.Seal.InitializeForm("Your program secret", "Your version", "Your variable key", this, new Form2(), SealColours.Red)
}

}
```

{% endcode %}

{% code title="VB" %}

```
Public Sub Main()
    SealCheck.HashChecks()

    If SealCheck.isValidDLL Then
        TrinitySeal.Seal.InitializeForm("Your program secret", "Your version", "Your variable key", Me, New Form2(), SealColours.Red)
    End If
End Sub
```

{% endcode %}
