Re: Wait for return value
Show the popup form using ShowDialog() and it will block the calling method until the form is closed (set its DialogResult property to indicate the returned value, or add your own property).
Re: Wait for return value
penagate is right. Here is a link to a thread where I asked a similar question and there is some example code...
http://www.vbforums.com/showthread.php?t=470000
Re: Wait for return value
Quote:
I want it to now continue with the code until the second form has closed and a value has returned so I can use the value in the code after
That can't happen if I understood correctly
Re: Wait for return value
I think the OP meant "not" rather than "now".
Re: Wait for return value
Yes sorry not is correct. Thank you all for the posts.
Re: [RESOLVED] Wait for return value
Can you have a showdialog to open a new form, and within it also have another showdialog? I cannot seem to get it to work.
Re: Wait for return value
Yeah you can. Pretty straightforward. Show your code, you might be doing something wrong. And you might be getting an error. And it might be helpful if you told us what the error is