Open CD Rom Tray

Category:
System/API
Type:
Controls
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
These sub procedures open and close the CD tray. The controls, command1_click() and command2_click(), must both be separate command buttons, not control arrays.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: