Results 1 to 4 of 4

Thread: Sys Tray Icon - Raise an event on double click?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    103
    I would like to have a procedure that I can do some operations when there is a double-click on a sys tray icon I have created.

  2. #2
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    593

    Arrow

    Have a look at this tip:

    http://www.vb-world.net/tips/tip61.html

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    103
    Ok, that works for a picture box, what if I am using an image list to store my icons??

  4. #4
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    593
    I think that you would want to add a picture box as well as your image list to handle the events - double clicking, etc. You would replace this line
    Code:
    Tic.hIcon = Picture1.Picture
    With this line:
    Code:
    Tic.hIcon = ImageList1.ListImages(1).Picture
    Try that. It should work.

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