Results 1 to 3 of 3

Thread: Kill Command not working[resolved]

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2003
    Posts
    206

    Angry Kill Command not working[resolved]

    rtrtrtrtrtrtrt
    Last edited by Aphex; Apr 17th, 2009 at 08:54 PM.

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344
    VB Code:
    1. x = MsgBox("Update Complete!" + vbCrLf + vbCrLf + "The updated file has been placed in C:\", vbOK, "")
    2. If x = vbOK Then
    3. Kill App.Path & "\Program.exe"
    4. Unload Me
    5. End If

    Change the "vbOKOnly to "vbOK".
    Last edited by Nightwalker83; Jun 5th, 2004 at 01:24 AM.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    Well actually in this code

    VB Code:
    1. x = MsgBox("Update Complete!" + vbCrLf + vbCrLf + "The updated file has been placed in C:\", vbOK, "")
    2. If x = vbOK Then
    3. Kill App.Path & "\Program.exe"
    4. Unload Me
    5. End If
    the user has no choice of anything except OK, so you might as well just do

    VB Code:
    1. MsgBox "Update Complete!" & vbCrLf &vbCrLf &"The updated file has been placed in C:\", vbOK, ""
    2. Kill App.Path & "\Program.exe"
    3. Unload 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