-
I have an application written in VB6 (Enterprise Edition) with one form and all sorts of code to do all sorts of things.
One piece is to change the default values on startup within the form. I know that there are at least two ways to reset defaults, but I don't know how to perform them.
1. Save the form so that the new defaults will come up on load, automatically. I don't know that this can be done in an exe. At least, I can't find the command to do it.
2. I am perfectly willing to write, read and modify a textfile holding the default values. How do I guarrantee that the file will be findable? I really don't wish to use "C:\Windows.... unless absolutely necessary.
Thank You
DerFarm
-
Actually, you're answering Q1 in Q2 :)
Write all the values to a file (or registry, but I personally prefer a file (INI if you want)) and load them at start of the prog.
You can store the file at App.Path (the path where the prog is located) if you want!
-
Got it!
Most excellent.
It is JUST what I wanted.
Thanks
DerFarm
-
Is that meant cinically or do you really have enough info?