how do i make it so a picture shows for about 5 seconds from the time users clicks to start my program until the actual program starts?:mrgreen:

Dani AI

Generated

asked how to show a picture for about 5 seconds at program start. already pointed to the built-in splash idea; here are practical, safe options for both desktop (WinForms) and web (ASP.NET) projects so the behavior is reliable and easy to maintain.

For a WinForms app the simplest approach is a small SplashForm with a PictureBox and a Timer set to 5000 ms. Start the timer in Form_Load, then on Timer.Tick stop the timer, show the main form and close the splash. This keeps the UI responsive and avoids Thread.Sleep. Example:

' SplashForm.vb
Public Class SplashForm
    Private Sub SplashForm_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
        Timer1.Interval = 5000
        Timer1.Start()
    End Sub

    Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles Timer1.Tick
        Timer1.Stop()
        Dim main As New MainForm()
        main.Show()
        Me.Close()
    End Sub
End Class

If the app does expensive startup work, keep the splash on-screen while loading on a background thread (BackgroundWorker or Task). Close the splash by invoking on its UI thread to avoid cross-thread exceptions. Visual Basic projects can also use the Application Framework (Project > Properties > Application) to assign a splash form and let the runtime handle timing.

For an ASP.NET site use a landing page that redirects after 5 seconds (meta refresh or JavaScript). Example meta tag:

<meta http-equiv="refresh" content="5;url=Default.aspx" />

This covers common desktop and web cases without freezing the UI or blocking startup.

Splash screen is part of the vb express edition. In other versions it may simply be a matter of a timer and a form

i am using the professional version, any tips on how to make that work?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.