[RESOLVED] [2008] determine if the program is running for the1st time
Hi, i wanted to know if there is a way for the program to determine if its being run for the first time in a computer or in a different user.
Re: [2008] determine if the program is running for the1st time
Add a Boolean value to your Settings, name it FirstRun and set its value to True. Then in code you can do this:
vb.net Code:
If My.Settings.FirstRun Then
'This is the first time the app has been run by this Windows user.
My.Settings.FirstRun = False
End If
Just note that if the user ever deletes their config file then the app will think the next run is their first. That's not something that should be happening without a good reason though.