Home All Groups Group Topic Archive Search About

adding a icon to the task bar

Author
3 Feb 2006 10:41 PM
everett
how do you add a icon to the task bar and when clicked on trigger a
event
this is the program im making
"
Set WMP = CreateObject("WMPlayer.OCX.7" ) '  vbscript
Set CDROMs = WMP.cdromCollection

If CDROMs.Count >= 1 Then
For i = 0 to CDROMs.Count - 1
  CDROMs.Item(i).Eject
Next
End If "
it ejects the cdrom drive i need to have a icon on the taskbar to
trigger the event for this and can you get vbscript in to vb.net code
thank you in advance

Author
4 Feb 2006 4:15 AM
Jeff Johnson [MVP: VB]
"everett" <everett.gill***@gmail.com> wrote in message
news:1139006483.175436.314780@g47g2000cwa.googlegroups.com...

> and can you get vbscript in to vb.net code

Is this entire question concerning VB.NET? If so:

This is a VB "classic" newsgroup. Questions about VB.NET (including VB 2005,
which has dropped .NET from its name) are off-topic here.

Please ask .NET questions in newsgroups with "dotnet" in their names. The
*.vb.* groups are for VB6 and earlier. If you don't see the *.dotnet.*
groups on your news server, connect directly to the Microsoft server:
msnews.microsoft.com.