Jump to content

Application Startup

- - - - -

  • Please log in to reply
1 reply to this topic

#1
HighKing Scott

HighKing Scott

    Newbie

  • Members
  • PipPip
  • 15 posts
I have created a splashscreen that starts up when my application first starts and I've set it to open an MDIParent form after the delay. I have some user settings that are required for the user to set the first time the application is started.

I can set the "options" form to display when the MDIParent form is displayed, but I only want it to display the first time the user starts the application.

What would be the best way to go about accomplishing this?

#2
HighKing Scott

HighKing Scott

    Newbie

  • Members
  • PipPip
  • 15 posts
Seems I just needed to sit and think about it:

I set a user settings: my.settings.firstrun (boolean) default = true

then on the MDIParents load event:

        If My.Settings.firstrun = True Then

            'CODE HERE - THIS IS THE FIRST RUN

            My.Settings.firstrun = False

            My.Settings.Save()

        ElseIf My.Settings.firstrun = False Then

            'CODE HERE - THIS IS NOT THE FIRST RUN

        End If






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users