Nendail Posted November 30, 2003 Posted November 30, 2003 I'm wondering if there is a way to make a program wait mid sub for a return of data. For example Sub main() run code if statement call function End if more code... end sub ^^^ THis is easy, But what I'm looking to do is.... Sub main() run code if statement Load second form (collect data from user) Return data/use it in code End if more code... end sub Whats hapenneing is when I load the second form the program is just finishing out the sub main code, it's not waiting for the data to come back from the second form to finish it's code. Is there a way to make it wait? Thanks Nendail Quote
*Experts* Volte Posted November 30, 2003 *Experts* Posted November 30, 2003 Show the form using the ShowDialog method of the Form, rather than the Show method. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.