For a Windows forms application I use the following construction.
I have a form with a TabControl. On each TabPage there is a custom user
control. The custom user control gets some parameters from the form, to set
the data of the user control. In the validating event of the custom user
control I check or there are any changes made by the user. If so, a message
box is shown with the question â??Save changes?â??
The validating event is fired on tab switch and form close, that is what I
want. But the problem is, on tab switch the message box is shown, but after
that the tabs donâ??t switch any more. Is there a way to achieve this goal,
user controls that a self responsible for their data saving?