For some reason, every time I hit the red "X" button to close the program. The program closes, but the process is still there. How do I make it so that if I press it, itll end the process too?
Printable View
For some reason, every time I hit the red "X" button to close the program. The program closes, but the process is still there. How do I make it so that if I press it, itll end the process too?
What do you have in your Form_Closing event? Anything?
Umm considering that I don't even know what that is, I'm guessing no
Try using the code below.
code Code:
Private Sub Form1_FormClosed(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed Application.Exit() End Sub
Thanks Jamie, it worked
How do i mark as complete? Do i just write resolved in my original post?
Hello,
You go to the top where it says Thread Tools and from the drop down menu choose Mark Thread Resolved.
K again thx for helping me.