0

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?

2
Contributors
2
Replies
13
Views
3 Years
Discussion Span
Last Post by adadziwa
0

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

Edited by Reverend Jim

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.