Hi
Am working on a project and this time i want the use
to choose whether or not to show the splash screen.
If the user choose NOT to show a NO is registered in a hidden XML file
which tell the program not to show the splash screen when next running...
...using

                If strGetStatus = "Yes" Then
                    frmSplashScreen.Show()
                    frmMainMenu.helHideWelcomeScreen.Text = "Hide Welcome screen"
                Else
                     frmLogin.Show()
                     frmMainMenu.helHideWelcomeScreen.Text = "Show Welcome screen"
                End If

But since i have selected frmSplashScreen as my startup form
it still show even if the user doesn't want it to.

NB: In other words how do i disable/able splash screen in a project?

Recommended Answers

Make your other form the main form and add a custom settings variable at the user level then do

Public Class frmMain

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

        If My.Settings.ShowSplash Then
            frmSplash.ShowDialog()
        End If

    End Sub

End Class

Public Class frmSplash

    Private Sub …
Jump to Post

All 2 Replies

Make your other form the main form and add a custom settings variable at the user level then do

Public Class frmMain

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

        If My.Settings.ShowSplash Then
            frmSplash.ShowDialog()
        End If

    End Sub

End Class

Public Class frmSplash

    Private Sub btnDisable_Click(sender As System.Object, e As System.EventArgs) Handles btnDisable.Click
        My.Settings.ShowSplash = False
    End Sub

End Class

Thanks

Be a part of the DaniWeb community

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