Solved

shut down window xp vb.net 2008

Posted on 2009-05-03
4
292 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

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 make search between pages 17 56
Read oracle BLOB in vb.net 2 20
.NET Redemption/Outlook Examples 3 24
Make borderless form movable by user 2 24
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
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…

740 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