Restart Computer (Windows XP) from VB.Net Program

  • Thread starter Thread starter Sarah
  • Start date Start date
S

Sarah

What is the best way to close my program gracefully and have the computer
restart on a Windows XP system?
 
What is the best way to close my program gracefully and have the
computer

Can you walk me through the steps to add the WindowsController class for
VB.NET to my VB.Net app? When I add the "TestApp.vb" and
"WindowsController.vb" files to my existing project, I get errors in
TestApp.vb that "Imports Org.Mentalis.Utilities" cannot be found.
 
Sarah said:
Can you walk me through the steps to add the WindowsController class for
VB.NET to my VB.Net app? When I add the "TestApp.vb" and
"WindowsController.vb" files to my existing project, I get errors in
TestApp.vb that "Imports Org.Mentalis.Utilities" cannot be found.

Remove the 'Namespace...' and 'End Namespace' in "WindowsController.vb", and
the line 'Imports Org.Mentalis.Utilities' in "TestApp.vb".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top