G
Guest
Hi all
I have an application in wich you can insert a new costumer, and like in
Microsoft Outlook 2003, and option "Save and New".
To deal this, I have an event in the edit form, that is raised when the user
saves the customer information. If the property "CreateNew" that comes along
with the custom EventArgs is true, then the child form creates a new form for
this.
Here is the code:
private void edit_Save(object sender, Edit.SaveEventArgs e)
{
if (e.CreateNew)
new();
}
It works fine, but after saving and getting the new screen, the previous
form is still on the screen and only closes when I close the second one - and
it goes on and on until I stop using this function. I believe this happens
because the function is still on (edit_Save). How can I prevent that, with
simplicity, please?
Thanks.
I have an application in wich you can insert a new costumer, and like in
Microsoft Outlook 2003, and option "Save and New".
To deal this, I have an event in the edit form, that is raised when the user
saves the customer information. If the property "CreateNew" that comes along
with the custom EventArgs is true, then the child form creates a new form for
this.
Here is the code:
private void edit_Save(object sender, Edit.SaveEventArgs e)
{
if (e.CreateNew)
new();
}
It works fine, but after saving and getting the new screen, the previous
form is still on the screen and only closes when I close the second one - and
it goes on and on until I stop using this function. I believe this happens
because the function is still on (edit_Save). How can I prevent that, with
simplicity, please?
Thanks.