Hi man,
I just tried Shutdown and Reboot, and it did not work. It only works for Log off. I will try other examples from the links. I think the main reason for it is that this sample code is ment for VB 6.0 and not .NET
Cheers,
Hey Body,
I just tried it out, and the Log off worked. I can't wait to test the rest. That helped a lot, and I would like to thank you for the reply man.
Again Thanx a lot!
hi,
I am writing a program in VB .Net (Fred) where I need to be able to shut down the system (Windows 2000 professional or antother NT based Windows) or log off or restart it at the click of a button under my main menu in the API.
Any idea on what sort of code to use for it?
Thank you,
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.