Results 1 to 9 of 9

Thread: VB6 - Sample Tray Activation

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2012
    Posts
    1,674

    VB6 - Sample Tray Activation

    Attached is a sample program that uses a Tray Icon to activate a program. It uses dilettante's "NotifyIcon" program.

    http://www.vbforums.com/showthread.p...ght=notifyicon

    I have left his explanations in the User Control intact. When first activated, the "Tray" program starts as a Icon in the system tray surrounded by red. A balloon will appear stating "Connecting to Server". It will normally time out, but I am using a timer to simulate establishing a connection. This causes the balloon to disappear and the red background on the Icon to also disappear. Moving the mouse over the Icon will show "Connected to Server". Ten seconds later, a second timer is used to simulate an incoming message, which will flash with instructions.

    Clicking on the Tray Icon will activate a program called "Sample.exe". You will have to compile that program first before it can be activated.

    To return the "Tray" program to it's normal state, or to exit the program, right click on the Tray Icon.

    J.A. Coutts

    Updated 12/06/2017
    Attached Files Attached Files
    Last edited by couttsj; Dec 6th, 2017 at 02:37 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width