Microsoft KB Archive/177095

= SAMPLE: SysTray.exe ActiveX Control Adds Icons to Status Area =

Article ID: 177095

Article Last Modified on 3/11/2005

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition

-



This article was previously published under Q177095



SUMMARY
SysTray.exe is an ActiveX control that is written in Visual Basic that demonstrates how to add icons to the status area of the taskbar. SysTray.exe also processes callback messages for taskbar icons. By using the new Visual Basic 5.0 AddressOf function, the callback messages are received and processed in a module that is registered as a callback function in a Win32 application programming interface (API) call.

The following file is available for download from the Microsoft Download Center:

Download SysTray.exe now

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.



MORE INFORMATION
In Visual Basic version 4.0, you must use a Visual Basic intrinsic control to serve as a Window that reacts to the callback message to manipulate the status area of the taskbar. By using an intrinsic control in this way, you can work around the inability of Visual Basic version 4.0 to work with pointers. For additional information about this method, click the article number below to view the article in the Microsoft Knowledge Base:

162613 HOWTO: Manipulate Icons in the System Tray with Visual Basic

Because Visual Basic 5.0 can work with pointers, you do not need to use an intrinsic control to add icons to the status area of the taskbar. Additionally, the control contains properties and mouse events, such as MouseMove, MouseDown, MouseUp, and MouseDblClick, to make the control more useful by specifying when the icon appears, where the ToolTip text will be, and the icon image.

Additional query words: system tray systray

Keywords: kbhowto kbprogramming kbfile kbsample KB177095

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.