Results 1 to 7 of 7

Thread: [RESOLVED] End Process?

  1. #1

    Thread Starter
    Lively Member Brinith's Avatar
    Join Date
    Feb 2012
    Location
    Near you
    Posts
    116

    Resolved [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?

  2. #2
    Fanatic Member proneal's Avatar
    Join Date
    May 2011
    Posts
    762

    Re: End Process?

    What do you have in your Form_Closing event? Anything?

  3. #3

    Thread Starter
    Lively Member Brinith's Avatar
    Join Date
    Feb 2012
    Location
    Near you
    Posts
    116

    Re: End Process?

    Umm considering that I don't even know what that is, I'm guessing no

  4. #4
    Frenzied Member
    Join Date
    Jul 2004
    Posts
    1,202

    Re: End Process?

    Try using the code below.

    code Code:
    1. Private Sub Form1_FormClosed(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
    2.         Application.Exit()
    3.     End Sub
    come back and mark your original post as resoved if your problem is fixed

    Jamie Garland

  5. #5

    Thread Starter
    Lively Member Brinith's Avatar
    Join Date
    Feb 2012
    Location
    Near you
    Posts
    116

    Re: End Process?

    Thanks Jamie, it worked
    How do i mark as complete? Do i just write resolved in my original post?

  6. #6
    Frenzied Member
    Join Date
    Jul 2004
    Posts
    1,202

    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

  7. #7

    Thread Starter
    Lively Member Brinith's Avatar
    Join Date
    Feb 2012
    Location
    Near you
    Posts
    116

    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
  •  



Click Here to Expand Forum to Full Width