CD opener/closer @ tray icons.

  • Thread starter Thread starter Tomo Ferega
  • Start date Start date
T

Tomo Ferega

I'm trying to write a simple program which ejects CD if closed and closes it
otherwise. Problem is, I have no idea how to do it or where to start
looking. So any help would be appreciatd.

Also, any advice on how to use system tray would help.
Thanks.

- Huitzilopochtli
 
Tomo Ferega said:
I'm trying to write a simple program which ejects CD if closed and closes it
otherwise. Problem is, I have no idea how to do it or where to start
looking. So any help would be appreciatd.

Also, any advice on how to use system tray would help.


Use the System.Windows.Forms.NotifyIcon class to put an icon in the system
tray.

You can use the Windows Multimedia SDK to open and close the CD tray,
although I haven't tried it from C#. Look for "mciSendCommand" in MSDN,
along with the constants MCI_SET_DOOR_OPEN and MCI_SET_DOOR_CLOSED.
 
Back
Top