View Single Post
Skilled contributor
12Jul2011,11:50  
ManzZup's Avatar
you can put your code into
form1_formclosing event

but this cannot be possible as i didnt get this kind of error so far
i think what you are doing is something like calling a second form from the first form hiding the first and then closing the second form
but in vb you are needed to close the Main form to stop executing the program
in the form closing event of the other programs
put something like form1.close()