By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,948 Members | 1,975 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,948 IT Pros & Developers. It's quick & easy.

Displaying Shut Down dialog

P: n/a
Is there any code so that I can call shut down dialog box from my
program?

Under shut down dialog box I mean the one that is shown when you click
on Start -> Shut Down.

Thanks in advance.

Dec 2 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Add a reference to system directory\shell32.dll
Add the following code:

Shell32.ShellClass c = new Shell32.ShellClass();
c.ShutdownWindows();

I tested this and it worked on Win2K pro.

Thi

Dec 2 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.