Results 1 to 9 of 9

Thread: [RESOLVED] [2008] Display a form only when app first run

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    515

    Resolved [RESOLVED] [2008] Display a form only when app first run

    How can I display a form ONLY when the app is first run, ie: the first time an end user starts the app.

    Thanks for any help.

  2. #2
    Hyperactive Member Ivenesco's Avatar
    Join Date
    Sep 2007
    Location
    Poland, Lublin
    Posts
    325

    Re: [2008] Display a form only when app first run

    Add boolean variable to settings. When you open app. then check this variable, and if it's false then open form and make it true. Next time this form won't appear.
    "Only two things are infinite; the universe and human stupidity, and I'm not sure about the former."
    Albert Einstein

  3. #3
    Hyperactive Member gnaver's Avatar
    Join Date
    Jul 2005
    Location
    Denmark/Sweden
    Posts
    289

    Re: [2008] Display a form only when app first run

    never tried but sound like the thing you need

    vb Code:
    1. if My.Application.Deployment.IsFirstRun then
    2. 'Your code
    3. end if

  4. #4
    Hyperactive Member Ivenesco's Avatar
    Join Date
    Sep 2007
    Location
    Poland, Lublin
    Posts
    325

    Re: [2008] Display a form only when app first run

    Same as my solution, but buid-in by microsoft But settings give you more flexibility: you can check more things than first run.
    "Only two things are infinite; the universe and human stupidity, and I'm not sure about the former."
    Albert Einstein

  5. #5
    Hyperactive Member gnaver's Avatar
    Join Date
    Jul 2005
    Location
    Denmark/Sweden
    Posts
    289

    Re: [2008] Display a form only when app first run

    true true, but why make something that already exist ...

    used the same method once and it works fine..

  6. #6
    Hyperactive Member Ivenesco's Avatar
    Join Date
    Sep 2007
    Location
    Poland, Lublin
    Posts
    325

    Re: [2008] Display a form only when app first run

    Quote Originally Posted by gnaver
    true true, but why make something that already exist ...
    For fun
    "Only two things are infinite; the universe and human stupidity, and I'm not sure about the former."
    Albert Einstein

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    515

    Re: [2008] Display a form only when app first run

    Quote Originally Posted by gnaver
    never tried but sound like the thing you need

    vb Code:
    1. if My.Application.Deployment.IsFirstRun then
    2. 'Your code
    3. end if
    Thanks gentlemen. So the above method works fine ??

  8. #8
    Hyperactive Member Ivenesco's Avatar
    Join Date
    Sep 2007
    Location
    Poland, Lublin
    Posts
    325

    Re: [2008] Display a form only when app first run

    Yes
    "Only two things are infinite; the universe and human stupidity, and I'm not sure about the former."
    Albert Einstein

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    515

    Re: [2008] Display a form only when app first run

    Excellent. Thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width