Preventing DialogBox from Closing?

  • Thread starter Thread starter bugaboo
  • Start date Start date
B

bugaboo

Guest
In vb.net, how can I keep the dialogbox open after retrieving the data?
I set a button DialogResult=DialogResult.OK. In the main form, I put the code like this

dim frmUserInput as new form2()
If frmUserInput.ShowDialog(Me) = DialogResult.OK Then
'retrieve data
end if

But this will close the dialogbox.
 
That is the whole point, if you ShowDialog a form, it will wait until the form is closed before returning.
 
Back
Top