You can use My.Settings.Go to the project properties page then select the "Settings" section (sixth one down the left side). There you can add a settings variable of any type. Pick a name (like FisrtRun) and a type (like Boolean) and set the initial value to True. In your code you can do
If My.Settings.FirstRun Then
'do initial code
My.Settings.FirstRun = False
End If
Make sure you select User scope so each user gets their own settings value.
Reverend Jim
Carpe per diem
3,604 posts since Aug 2010
Reputation Points: 561
Solved Threads: 448
Skill Endorsements: 32
Whatever you were going to do the first time the users runs the app is what you will put there.
Reverend Jim
Carpe per diem
3,604 posts since Aug 2010
Reputation Points: 561
Solved Threads: 448
Skill Endorsements: 32