JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1616
|
Re: property pages of user controls
Well, if you want the person running the program to be able to make changes when it's running, and to save those changes, it's easiest to store it in a file (that the program creates and reads when it runs).
It can be stored in a database, registry... But unless you use a database in the program, adding support for a database just to store values adds a lot of overhead for no real purpose. Registry can be used, but I try not to use the registry whenever possible (clutter's left behind if you uninstall the program many times), and if there's ever a problem, you don't want users editing the registry.
A text file's easiest. If you search the board, there's tons of examples, but it's basically as easy as:
open "filename.txt" for output as 1
print #1, "a value to save for control A"
print #1, "a value to save for control B"
close
open "filename.txt" for input as 1
line input #1, strControlAValue
line input #2, strControlBValue
close
____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
|