how to kill your app in VB?

JoeCDaMan

Senior member
Sep 17, 2001
211
0
0
I am looking to use the X button to kill my app that I am writing in VB. I don't know how to access the button or kill my app

this is kinda where I am going

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Closed

Alarm_Invoker.Abort() 'aborting one thread
Clock_Invoker.Abort() 'aborting second thread


' insert exit command here I am looking for something like "exit(0)" in C++


End Sub


Is this correct? if it's not can some one please help, I don't think this should be that hard, but I need to get it working.

Thanks
 

JoeCDaMan

Senior member
Sep 17, 2001
211
0
0
thanks, for whatever reason it just required me to restart vis studio for it to work. Kinda wierd