How to destroy a child WinForm after operation?
-
I have a MDI winform program, I create a child WinForm frmChild; In this frmChild, I have a button Add to do some operation, after the operation is done, I want to destroy the frmChild form. How can I do this?
OnBtnAdd()
{
do_operation();
//do the operation, and succeeded
//then I want to destroy this child form.
//here How to destroy the child form?
} -
I have a MDI winform program, I create a child WinForm frmChild; In this frmChild, I have a button Add to do some operation, after the operation is done, I want to destroy the frmChild form. How can I do this?
OnBtnAdd()
{
do_operation();
//do the operation, and succeeded
//then I want to destroy this child form.
//here How to destroy the child form?
}Did you try Close()?
Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Please stand in front of my pistol, smile and wait for the flash - JSOP 2012