home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 5 Developer's Kit / vb5 dev kit.iso / dev / tbexit / readme.txt < prev    next >
Encoding:
Text File  |  1996-01-12  |  1.6 KB  |  37 lines

  1. This sample program demonstrates how to add an icon to the system tray
  2. of Win 95's taskbar and respond to various mouse events when the user
  3. moves the cursor over the icon.
  4.  
  5. Specifically, the program adds an Exit icon which you can just double
  6. click to shut down your computer.   Right clicking on the icon will
  7. display a menu from which you can choose to shut down, reboot, or go 
  8. into MS-DOS mode, just the same as if you click Shut Down from the 
  9. Start button.  Kinda of a useful little utility actually.  It only
  10. saves a few mouse clicks and movements, but it's amazing how much
  11. easier it is.
  12.  
  13. Naturally, to run the program you need Windows 95 and VB 4.0.  You also
  14. need the MSGHOO32.OCX custom control (included in the zip file).  Copy
  15. the control to your Windows\System folder.  From VB, right click 
  16. anywhere on the Toolbox and select Custom Controls.  Click the Browse 
  17. button to add the control to the Available Controls.  This will
  18. register the control so it can be used in your programs.  After you've
  19. done that, you can open the project in VB.
  20.  
  21. This program makes use of 32 bit API calls that are exclusive to Win95;
  22. therefore, it will NOT work with any 16 bit version of VB, even if you 
  23. have Windows 95.  It should work with Windows NT 3.51 (provided you have
  24. the new shell), but it hasn't been tested with NT.
  25.  
  26. If you do find this to be a more convenient way of exiting Windows, do 
  27. what I did and place a shortcut to the executable in your Startup
  28. folder.
  29.  
  30. Any questions can be sent to VDG Mike on America Online.  Hope you find
  31. this useful.
  32.  
  33. Mike Davis
  34.  
  35. Visual Developers Group, Inc.
  36. vdgmike@aol.com
  37.