473,385 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

CD opener/closer @ tray icons.

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
1 1633
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Zeljko | last post by:
Hi, I have a form with a tray icon. However, when I minimize the form, it stays visible - not in the task bar (I have showintaskbar property set to false), but in a form of a rectangle sitting...
3
by: joe | last post by:
Hi guys, Is there any way to refresh the system tray. Every time the explorer crashes the notify icons are removed and I cannot see them when it comes back even when my application is running....
2
by: Sean Dudley | last post by:
Hi folks, I am trying to figure out how to enumerate the system tray icons and get their handles when explorer.exe is not running. So I need to be able to ask probably through API which icons...
1
by: Phil Galey | last post by:
In VB.NET, the NotifyIcon can be used to create a tray icon. But how can you search for a tray icon from another application? I need to be able to enumerate the tray icons, searching for one...
7
by: Benny Raymond | last post by:
I searched for a couple hours lastnight on example code of how to go about making an item in the System Tray (notification area) not be square. I've found several programs that do this but I can't...
2
by: asif | last post by:
When I add a USB key, system tray icon on Windows XP shows USB icon. It also shows icon that can be used to "Safely Remove Hardware". I would like to use this icon in one of my Visual C++...
3
by: Patrick Dugan | last post by:
I am using VS2005 (vb) and I have a program that starts when Windows boots up. Occasionally the icon that should appear in the system tray does not show up. The program is still running in memory...
0
MikeJaskov
by: MikeJaskov | last post by:
Hi. I'm working on some project so how to diasble system tray icons and clock or how to hide system tray icons and clock. Many thanks . . .
0
vdraceil
by: vdraceil | last post by:
Hi all,does anyone know how to remove an icon(of some other application) from the system tray without the process of that application being affected? can SHELL_NOTIFYICON be used for this...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.