Solved

shut down window xp vb.net 2008

Posted on 2009-05-03
4
288 Views
Last Modified: 2013-11-26
i need vb.net 2008 code to shut down window xp.
0
Comment
Question by:aarontham
  • 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to retrieve a mysql date column that has 0000-00-00 in vb.net 8 35
in Dot net,lastest version of MVC 3 24
Disable extension 8 38
location of a form 2 14
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 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