index > Visual C# General > Know if windows is shut down

Know if windows is shut down

How my program know if windows is shut down so my program can stop itself.Sad

thanks,
arif_setiawan
Check the Microsoft.Win32.SystemEvents class. It has an event called SessionEnding.
Mike Danes
reply 2

You can use google to search for other answers

 

More Articles

• How to get total memory of computer
• how to browse a directory?
• delete datagridviewrow
• Resource file creation in C# (using string examples)
• Import outlook contacts
• 你们???吗?
• Special type of vedio editing
• Read Field-Attributes from an MS-Access-Table
• Tree control to display the data form a database table in hierarc...
• Aspect Oriented Programming
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Adding ListView Groups through code
• Reading from a Select Statement
• Checking for registry value
• Changing User Permissions in C#
• Add new user in LDAP (DirectoryEntry)
• Checking if a Form is running
• Uploading to FTP from either a filesyste
• Thread impersonation in Win 2k, via c#
• Mobile control in System.Web.UI.Page
• When adding ref, application closes ( In
• How can I use ToolBar button for all chi
• Editor
• Is C# 100% pure OOP.., Boxing n unboxing
• dynamic casting/creating
• An interesting and challenging application

Hot Articles

• Problem of ListView and Image Problem
• text + image + text save to database
• very slow setpixel and getpixel method o
• How to Get the Mailing Address List
• running unknow methods
• RS232 Com port runtime & Transmittin
• How to get UserId of a logined user from
• Link Froms
• how do I get the form to refresh when ru
• probleme with gridview
• Copying Files
• Help with strange PInvoke conversion
• drag & drop with mouse
• TabControl
• problem with property update...

Recommend Articles

• How to wrap a OleControl using AxHost?
• GetMethod and ReflectionPermission
• height and width
• listBox refresh problem
• Default printer
• C# Question
• Accessing a public item through an inter
• How to retrieve the key value of a listi
• Add new user in LDAP (DirectoryEntry)
• Combo Box Columns Without creating a tab
• Overriding a property with a new name
• Creating Objects
• Serializing Derived Classes
• Exceptions take very long
• How to reduce image size from 1 Mb to 10