VB: WINDOWS SHUTDOWN

creating a shutdown application in MS Visual Basic 6.0

1. Open MS Visual Basic 6.0
2. Create a Form
3. On the Menu bar, click on Project
4. Click on References
5. Make a checkmark for 'Microsoft Shell Controls and Automation'
6. Click on the OK button
7. Declare the variable
Option Explicit
Dim x As New Shell
8. Insert the code in a Command Button
x.ShutdownWindows
9. Save the project
10. Run the program.

_________________________________________________________________
  .  cdo bloggers   .  my digital corner   .  sacha chua   .  the oatmeal   .  toxel.com   . 
  .  Hotels & Resorts Worldwide   .