# how to setup Splash forms

**URL:** <https://forums.thehomestack.io/t/how-to-setup-splash-forms/225>\
**Category:** vb.Net\
**Created:** [September 18, 2005, 2:45pm UTC](https://forums.thehomestack.io/t/how-to-setup-splash-forms/225 "2005-09-18T14:45:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://forums.thehomestack.io/uploads/default/original/1X/161426793bc0d8bdf0d1a6692b3e44446861cc72.jpeg) [@system](https://forums.thehomestack.io/u/system)\
**Post date:** [September 18, 2005, 2:45pm UTC](https://forums.thehomestack.io/t/how-to-setup-splash-forms/225/1 "2005-09-18T14:45:56Z")

</div>

```auto

Option Strict On
Imports System.Threading
Imports System.Threading.Thread

Module Module1 'The module statement defines a group of functions, typically a set of DLL entry points.

    Private GreatEstates As frmGreatEstates
    Dim ThreadSplash As Thread
    Dim SplashForm As frmsplash 'SplashForm is the name given to the frmSplash Form

    Public Sub Main()
        SplashForm = New frmsplash

        With SplashForm
            .Show()
            .Cursor = System.Windows.Forms.Cursors.WaitCursor
            .Refresh()
        End With

        ThreadSplash = New Thread(AddressOf HideSplash)
        ThreadSplash.Start()

        Dim Login As New frmMain
        Application.Run(Login) 'Begin Application

    End Sub

    Private Sub HideSplash()
        ThreadSplash.Sleep(5000) 'SplashForm pauses for 2 seconds
        SplashForm.Cursor = System.Windows.Forms.Cursors.Default
        SplashForm.Close()

    End Sub
End Module 

```
