Alright so im creating a visual os in vb 2010 and im creating a resgistration form.. the problem is i only want the registration form to only show the first time that they start the program and not everysingle time they open the program.. and i also want the for to remeber eveything they have inputted into the registration form so it can be used later in the program at some point
7 Months Ago
Related Article:background image in vb.net form
is a VB.NET discussion thread by pratik65 that has 5 replies, was last updated 5 months ago and has been tagged with the keywords: background, image, in, vb.net, form.
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
Make sure you select User scope so each user gets their own settings value.