close project

BrechtLS

Active member
Joined
Apr 5, 2006
Messages
32
Location
Belgium
Programming Experience
1-3
Is there a way to close the whole project? I have made an application with 2 forms, you can see the first one for a couple of seconds, then I hide it and the second forms shows up. But if I close that form my whole application isn't closed and the process of it still stands open. Isn't there a way to close the whole project?
 
Thanks ManicCW!
In the meanwhile I had found that you can also use "End" to close your project.
 
for a more clean method to exiting your application put this in your first form (the one that's hidden):

VB.NET:
Friend Sub CloseForm()
  Me.Close()
End Sub

now in the 2nd form simply:
VB.NET:
Call CloseForm()


this way if you have any settings to be saved or anything else that needs to be done before your app exits you can put that code in the Closing event of your hidden form, and it'll be done before the whole app closes
 
Well there actually exist a lot more methods than I thought, and first I couldn't even find one!
Thanks everyone!!
 
Last edited:
Back
Top