SAMPLE: SysTray.exe ActiveX Control Adds Icons to Status Area (177095)



The information in this article applies to:

  • Microsoft Visual Basic Professional Edition for Windows 5.0
  • Microsoft Visual Basic Enterprise Edition for Windows 5.0

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:
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.

Modification Type:MinorLast Reviewed:3/11/2005
Keywords:kbfile kbhowto kbProgramming kbSample KB177095 kbAudDeveloper