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
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
