How to save selected form and control properties at run time

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to save the properties like visible, enabled, allowXXXX (not the table
data) at run time. The programme requires very specific settings to run
correctly. I check when the form is opened but I want be able to save these
properties. I also want to be able to save tag properties at run time.
 
Sounds like you need to use the Unload event of the form to save the
property values into a table. Then you can use the Load event of the form to
apply them again next time the form opens.

The table would have fields:
DocName Text the name of the form this property value is for.
CtlName Text the name of the control on the form this propert is
for.
PrpName Text the name of the property of the control you want to
set.
PrpValue Text the value to store (even if it is a number or yes/no
value.)

DocName and PrpName would be required.
Leave CtlName blank if the property applies to the form.
 
Back
Top