|
-
Jun 17th, 2008, 01:57 PM
#1
Thread Starter
Fanatic Member
[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.
-
Jun 17th, 2008, 01:59 PM
#2
Hyperactive Member
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
-
Jun 17th, 2008, 02:00 PM
#3
Hyperactive Member
Re: [2008] Display a form only when app first run
never tried but sound like the thing you need
vb Code:
if My.Application.Deployment.IsFirstRun then
'Your code
end if
-
Jun 17th, 2008, 02:03 PM
#4
Hyperactive Member
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
-
Jun 17th, 2008, 02:07 PM
#5
Hyperactive Member
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..
-
Jun 17th, 2008, 02:12 PM
#6
Hyperactive Member
Re: [2008] Display a form only when app first run
 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
-
Jun 17th, 2008, 02:12 PM
#7
Thread Starter
Fanatic Member
Re: [2008] Display a form only when app first run
 Originally Posted by gnaver
never tried but sound like the thing you need
vb Code:
if My.Application.Deployment.IsFirstRun then
'Your code
end if
Thanks gentlemen. So the above method works fine ??
-
Jun 17th, 2008, 02:14 PM
#8
Hyperactive Member
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
-
Jun 17th, 2008, 02:15 PM
#9
Thread Starter
Fanatic Member
Re: [2008] Display a form only when app first run
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|