Hi All,

I have a spash screen on my project, this isn't just for effect but to read data from a file
before my main project is started.

the issue is that i cant seam to close my splash screen.....

here is the code from my splash screen.

  Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

               CheckConfigFile()
    End Sub

    Private sub Checkconfigfile 
            Me.txtMessage.AppendText("Checking Licencing information.")



        If _HDSN = _HDSNCHECK Then

            Me.txtMessage.AppendText("  - Licence Info correct" & Environment.NewLine)


            'Date & Licence Info correct, now what?
            Me.txtMessage.AppendText("All Settings Correct, Now What" & Environment.NewLine)
    mainform.show
    me.hide


        Else

            Me.txtMessage.AppendText("Please Contact Technical Support Error " & " " & _HDSN)

        End If

the issue is that mainform does show, but i cant close or hide the splash screen,
can someone point me in the right direction please?

Recommended Answers

Hide your splash screen.

My.Application.SplashScreen.Hide()

Jump to Post

All 2 Replies

Is your splash screen the startup form??? if so try to make it as visible= false....
if it is a start up form and u try to close the splash screen then the complete application will exit,,,

Member Avatar

Hide your splash screen.

My.Application.SplashScreen.Hide()

Be a part of the DaniWeb community

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