|
-
May 14th, 2009, 09:00 PM
#1
Thread Starter
Junior Member
[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.
-
May 15th, 2009, 05:40 AM
#2
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
-
May 15th, 2009, 03:40 PM
#3
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.
-
May 15th, 2009, 05:51 PM
#4
New Member
Re: Can you make a shutdown confirmation?
Use a MsgBox,, using Yes.No
If msgbox.result = Yes then
........
End If
-
May 15th, 2009, 06:23 PM
#5
Thread Starter
Junior Member
Re: Can you make a shutdown confirmation?
 Originally Posted by Nightwalker83
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.
-
May 15th, 2009, 06:23 PM
#6
Thread Starter
Junior Member
Re: Can you make a shutdown confirmation?
 Originally Posted by Lord Orwell
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.
-
May 15th, 2009, 06:26 PM
#7
Thread Starter
Junior Member
Re: Can you make a shutdown confirmation?
 Originally Posted by Battalion
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?
-
May 15th, 2009, 10:41 PM
#8
Re: Can you make a shutdown confirmation?
 Originally Posted by Battalion
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
-
May 16th, 2009, 01:05 AM
#9
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...
-
May 16th, 2009, 05:44 AM
#10
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|