Results 1 to 10 of 10

Thread: [RESOLVED]Can you make a shutdown confirmation?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2009
    Location
    Washington, D.C
    Posts
    26

    Resolved [RESOLVED]Can you make a shutdown confirmation?

    If I press the power button on the computer, or if it is on accident and you are doing something really important, can a confirmation dialog appear and confirm if you really want to shut down? I mean like you have your program running, and while it is running (Form1_Running?):


    If shutdown Activated Then
    Dim Prompt As String
    So on, So on...
    Last edited by Battalion; May 16th, 2009 at 05:45 AM.

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Can you make a shutdown confirmation?

    Windows, etc should already do that! If you in the middle of writing a document, etc and the computer is restarted/shut down, the operating system should notify you of what is happening.
    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
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Can you make a shutdown confirmation?

    go into your power settings. there is an option on what to do if you press the power button. one of the options is to show the OS shutdown menu instead of simply powering off. Personally, i have mine set to go into hibernate.

  4. #4
    New Member
    Join Date
    May 2009
    Posts
    7

    Re: Can you make a shutdown confirmation?

    Use a MsgBox,, using Yes.No

    If msgbox.result = Yes then
    ........
    End If

  5. #5

    Thread Starter
    Junior Member
    Join Date
    May 2009
    Location
    Washington, D.C
    Posts
    26

    Re: Can you make a shutdown confirmation?

    Quote Originally Posted by Nightwalker83 View Post
    Windows, etc should already do that! If you in the middle of writing a document, etc and the computer is restarted/shut down, the operating system should notify you of what is happening.
    If it is this case, then It will prompt you to Save it.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    May 2009
    Location
    Washington, D.C
    Posts
    26

    Re: Can you make a shutdown confirmation?

    Quote Originally Posted by Lord Orwell View Post
    go into your power settings. there is an option on what to do if you press the power button. one of the options is to show the OS shutdown menu instead of simply powering off. Personally, i have mine set to go into hibernate.
    Ok, I will try this.

  7. #7

    Thread Starter
    Junior Member
    Join Date
    May 2009
    Location
    Washington, D.C
    Posts
    26

    Re: Can you make a shutdown confirmation?

    Quote Originally Posted by Battalion View Post
    Ok, I will try this.
    Ok, I found Power Options>System Settings>Power Button Settings. It says:

    When I press the power button:
    Option 1: Do nothing
    Option 2: Sleep
    Option 3: Shutdown

    I guess I should go with Option 1?

  8. #8
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Can you make a shutdown confirmation?

    Quote Originally Posted by Battalion View Post
    If it is this case, then It will prompt you to Save it.
    It does prompt you to save it!

    Answering the above question yes, "option 1" will disable the power button.
    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

  9. #9
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Can you make a shutdown confirmation?

    well that's interesting. Evidently they changed the OS since an older version. My wife's xp install prompts when you push the power button. I'm runnin 7 now and it doesnt have a prompt option. What kind of bs...

  10. #10

    Thread Starter
    Junior Member
    Join Date
    May 2009
    Location
    Washington, D.C
    Posts
    26

    Re: Can you make a shutdown confirmation?

    Ok everyone, I have successfully disabled my power button so It won't turn off when it is pressed! So now my PC won't shutdown when it as accidentally pressed, thank-you very much!

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