I have a form and in one of the methods of this form I want to release this form (based on some condition). So I have code thisform.release()
But the form is not released. The program goes to the next line after the thisform.release(). How do I release a form in a middle of any method of the form?Instead if trying to release the form in the middle of the method, set a flag instead. Then, if the flag is set at the end of the method, release the form there.