View Single Post
Old Feb 17th, 2006, 5:44 PM   #4
melbolt
Hobbyist Programmer
 
melbolt's Avatar
 
Join Date: Feb 2005
Location: PA, USA
Posts: 242
Rep Power: 4 melbolt is on a distinguished road
Send a message via AIM to melbolt Send a message via Yahoo to melbolt
Quote:
Originally Posted by Austin123
are there any activeX controls that deal with system tray icons that can be used with VBscript?
Thanks

I'm not sure about scripting, but in VB .NET...

Creating the system tray icon is pretty simple. The .NET Framework provides the NotifyIcon class. From the designer, all you need to do is drag a NotifyIcon control to the form. You may also want to design a custom icon to go with it.

Strangely, there's no way to go from the icon property on the NotifyIcon object directly to the icon editor. You need to add a new icon file to your project, edit the icon, and then refer to that file to hook it to the NotifyIcon object.


now that you have the icon you'll probably want to add contextmenu control to your form as well, this will give you the right click menu in which you can then code to do whatever you want.

there's some useful stuff here: http://msdn.microsoft.com/library/de...rp06102002.asp

although this is for C#, a lot of it is still similar since they share the .NET framework.
__________________
I have never let my schooling interfere with my education. -Mark Twain-

Xbox live gamertag: melbolt
melbolt is offline   Reply With Quote