Sanguineus
New member
- Local time
- Today, 15:15
- Joined
- May 5, 2020
- Messages
- 13
I have a form that I have opened with a standalone app feel. I also have some code that detects if the application background has been maximised and hides that part again. However to do so Ihave to close and re-open the active form.
What I am struggling to do is save the properties of each control, such as visibility, enabled and values that when I re-open the form I can return each control to its state at the point it was closed rather than a blank canvas.
The only way I have thought of in the last 30 minutes would to be to create a function with multiple variables for each property for each control that I want to store. But I just feel there's got to be a better way than having c.100 variables in a function.
Hopefully someone will have a better idea.
What I am struggling to do is save the properties of each control, such as visibility, enabled and values that when I re-open the form I can return each control to its state at the point it was closed rather than a blank canvas.
The only way I have thought of in the last 30 minutes would to be to create a function with multiple variables for each property for each control that I want to store. But I just feel there's got to be a better way than having c.100 variables in a function.
Hopefully someone will have a better idea.