title: vb. net wait for 2nd form to close before continuing
body: <p>Is  there a way in vb.net to pause a function\ event and wait till another form has closed to contine</p>
  
  <p>example:</p>
  
  <pre><code>    Private Sub B1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles B1.Click
  
  label1.text="Hello testing.." '1st function
  
  form2.show() '2nd function
  
  'MAKE FORM WAIT FOR FORM 2 TO CLOSE...
  'THEN CONTINUE WITH THE NEXT FUNCTION
  
  msgbox("Some function that was waiting in the event") '3rd function
  
  end sub
  </code></pre>
  
  <p>The closest I can find towards what I want is an input box but an input box is limited in what I want though it dose wait as i would like the Form2 to function.</p>
  
  <p>another suggestion was to loop  untill the form2 has closed, however this is hacky and unprofesional as a solution (my oppinion)</p>