Solved

shut down window xp vb.net 2008

Posted on 2009-05-03
4
293 Views
Last Modified: 2013-11-26
i need vb.net 2008 code to shut down window xp.
0
Comment
Question by:aarontham
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 6

Accepted Solution

by:
Mushq earned 500 total points
ID: 24292751
Please check the mentioned code.
And the following link for more details.
http://forums.techarena.in/software-development/1104154.htm

Best Regards,
Mushi
    Private Sub btnShutdown_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnShutdown.Click
        System.Diagnostics.Process.Start("shutdown", "-s -t 00")
        'This will make the computer Shutdown
    End Sub

Open in new window

0
 

Author Comment

by:aarontham
ID: 24292900
Hi Mushq,

i try the code but don't work.
0
 
LVL 6

Expert Comment

by:Mushq
ID: 24292922
Hi,
I don't think there should any problem in that, but let me confirm that at my side.

Best Regards,
Mushi
0
 
LVL 6

Expert Comment

by:Mushq
ID: 24292970
Hi,
I tried that on Windows 2K3 code worked fine. Sorry right now I don't have any XP machine so wouldn't able to test that but surely can do test of that after 6 or 7 hours.

Couple of Questions.
* Are there any other applications opened?
* Are you getting any type of error.

Best Regards,
Mushi
0

Featured Post

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question