473,394 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

shut-down Operating System Question

Hi
I have a VB.Net windows application that for some reason when running will
not allow the user to shut-down/reboot the Operating System without first
closing my application. Has anyone had the problem and how might I resolve
it?

I need my app to allow the user to shut-down and or reboot their OS without
closing my application first.

Thanks
BrianDH

Nov 21 '05 #1
3 1571
"BrianDH" <Br*****@discussions.microsoft.com> schrieb:
I have a VB.Net windows application that for some reason when running will
not allow the user to shut-down/reboot the Operating System without first
closing my application. Has anyone had the problem and how might I
resolve
it?


Could you provide some details about your application?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
in WMI you could trace the call to shotdown the PC, may be, you could detect
the call and cancell it, until your application its closed...
--
Salute by the First Time!
"BrianDH" wrote:
Hi
I have a VB.Net windows application that for some reason when running will
not allow the user to shut-down/reboot the Operating System without first
closing my application. Has anyone had the problem and how might I resolve
it?

I need my app to allow the user to shut-down and or reboot their OS without
closing my application first.

Thanks
BrianDH

Nov 21 '05 #3
Hi,

add event handler to Microsoft.Win32.SystemEvents.SessionEnding ..
.... then you will be notifyed when user logs off or shuts down his PC...

hope this helps ..

Regards,
Josip Habjan
http://www.habjansoftware.com

"BrianDH" <Br*****@discussions.microsoft.com> wrote in message
news:CB**********************************@microsof t.com...
Hi
I have a VB.Net windows application that for some reason when running will
not allow the user to shut-down/reboot the Operating System without first
closing my application. Has anyone had the problem and how might I
resolve
it?

I need my app to allow the user to shut-down and or reboot their OS
without
closing my application first.

Thanks
BrianDH

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

303
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b....
8
by: ApexData | last post by:
Hello I have just completed the development of a turn-key Access2k application. I am using MS Access 2000k application, not the RunTime. I have compiled it, split it (FE & BE), set all the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.