|
-
Feb 9th, 2012, 04:30 PM
#1
Thread Starter
Lively Member
[RESOLVED] End Process?
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?
-
Feb 9th, 2012, 06:30 PM
#2
Re: End Process?
What do you have in your Form_Closing event? Anything?
-
Feb 9th, 2012, 06:53 PM
#3
Thread Starter
Lively Member
Re: End Process?
Umm considering that I don't even know what that is, I'm guessing no
-
Feb 9th, 2012, 07:05 PM
#4
Frenzied Member
Re: End Process?
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
come back and mark your original post as resoved if your problem is fixed
Jamie Garland
-
Feb 9th, 2012, 07:12 PM
#5
Thread Starter
Lively Member
Re: End Process?
Thanks Jamie, it worked
How do i mark as complete? Do i just write resolved in my original post?
-
Feb 9th, 2012, 07:36 PM
#6
Frenzied Member
Re: End Process?
Hello,
You go to the top where it says Thread Tools and from the drop down menu choose Mark Thread Resolved.
come back and mark your original post as resoved if your problem is fixed
Jamie Garland
-
Feb 9th, 2012, 07:49 PM
#7
Thread Starter
Lively Member
Re: End Process?
K again thx for helping me.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|