I've used this technique in a couple of applications. You could create a .dat or .ini file, some random access file, that's not named anything conspicuous(sp?) with the default values to be loaded into this one time form, and a counter value. If its the first time the app is loaded on the persons PC the form you describe loads...the user enters the data which is stored either in that same file or in another file. The next time the app loads if the value of the counter is > 0 then the values of the lables are changed to your permanent text. That way you don't have to play around with the Registry. Hope this all made sense.
Code:'Forms Load event Dim fs as System.IO.Filestream = New System.IO.Filestream("your file", FileMode.Open) Dim sr as System.IO StreamReader = New System.IO.StreamReader(fs) Dim appCount as Integer appCount = sr.ReadLine if appCount > 0 then Me.MyLabel.Text = "Your Text" Else Me.MyLabel.Text = "Something Else" appCount = appCount + 1 'Write value back to your file End If 'Close your FileStream and StreamReader Objects




Reply With Quote