By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,238 Members | 1,837 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,238 IT Pros & Developers. It's quick & easy.

CD opener/closer @ tray icons.

P: n/a
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
Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Tomo Ferega" <to*********@zg.htnet.hr> wrote in message
news:bn**********@ls219.htnet.hr...
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.
Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.