VB.net question

phantom404

Golden Member
Nov 2, 2004
1,460
2
81
I have 2 forms and a class file that holds shared variables. Heres what I'm doing. You click on a button on the first form, it opens up the 2nd form you select your choice and it relays the choice back to the first form through the shared variables and displays information on the first form according to your choice in the 2nd form.

The Problem: Whenever you click the button on the first form to bring up the 2nd form instead of pausing and going to the 2nd form it continues to read code after the 2ndform.show statement. Is there a way to pause reading the code, go to the 2nd form and then go back to the first form and resume from where it left off?
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
There should be something like a ShowDialog method which blocks until the second form closes. It will return what action was taken to close the form too, like OK or Cancel or whatever.