Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private myFormName myForm;
- private void DoStuff()
- {
- myForm = new myFormName ();
- myForm.Disposed += (ev1, se1) => {myFormName = null;};
- myForm.ShowDialog();
- while (myForm != null)
- Thread.Sleep(10);
- // Form has been disposed.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement