G
Guest
This is about finding the right point at which to save user entered data in
the registry, so that when the application is restarted, the saved values
will be restored. I want this behaviour to be automatic - ie, it happens
every time, without the user pressing "OK", or "Save", whaterver..
With a Form, it is easy. Add an event handler for the Closed event, for
saving, and the Load event, for restoring.
A UserControl is more difficult. It has a Load event, which I'll use for
restoring the values, but no Close event.
When should I save values from a UserControl?
TIA,
Javaman
the registry, so that when the application is restarted, the saved values
will be restored. I want this behaviour to be automatic - ie, it happens
every time, without the user pressing "OK", or "Save", whaterver..
With a Form, it is easy. Add an event handler for the Closed event, for
saving, and the Load event, for restoring.
A UserControl is more difficult. It has a Load event, which I'll use for
restoring the values, but no Close event.
When should I save values from a UserControl?
TIA,
Javaman