Is there a way to save the contents of a form, example,
if the user create a control at runtime, then i want to save those controls to load them later, is there a way to do it?
Thanks in advance!
Printable View
Is there a way to save the contents of a form, example,
if the user create a control at runtime, then i want to save those controls to load them later, is there a way to do it?
Thanks in advance!
open any form.frm in notepad, it will give you an idea!
If I understood your question you want to keep track of how many controls you have loaded during runtime and reload them the next time you run the app . You can save some strings that contain the name , loacation , and other information in a file or the registry . add read it during the next time you run the app .
This code shows you how to loop trough all the controls in a form.
Code:'loop trough all controls
For Each Control In Controls
'print some info about the control to the debug window
Debug.Print Control.Name 'the name
Next
Thanks a lot, you guys rock!!!