Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. private myFormName myForm;
  2.  
  3. private void DoStuff()
  4. {
  5.     myForm = new myFormName ();
  6.     myForm.Disposed += (ev1, se1) => {myFormName = null;};
  7.     myForm.ShowDialog();
  8.    
  9.     while (myForm != null)
  10.         Thread.Sleep(10);
  11.  
  12.     // Form has been disposed.
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement