Results 1 to 12 of 12

Thread: Menu in the system tray

  1. #1

    Thread Starter
    Hyperactive Member nickwrs's Avatar
    Join Date
    Jan 2000
    Location
    Atlanta, Ga
    Posts
    398

    Exclamation

    Hey,

    I have a class that has a right click event for my icon in the system tray. I would like to have a menu pop up, but I don't know the command for it.

    Nick

  2. #2
    Matthew Gates
    Guest
    PopupMenu MyMenu

  3. #3
    Member
    Join Date
    Jan 2013
    Posts
    48

    Re: Menu in the system tray

    how did you call right click event?

  4. #4
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Re: Menu in the system tray

    put that in form mousedown event

  5. #5
    Member
    Join Date
    Jan 2013
    Posts
    48

    Re: Menu in the system tray

    Quote Originally Posted by ladoo View Post
    put that in form mousedown event
    how??

  6. #6

    Thread Starter
    Hyperactive Member nickwrs's Avatar
    Join Date
    Jan 2000
    Location
    Atlanta, Ga
    Posts
    398

    Re: Menu in the system tray

    What IDE (visual studio) version are you using?

  7. #7
    Member
    Join Date
    Jan 2013
    Posts
    48

    Re: Menu in the system tray

    i'am using vb6 and i want to catch event in my application system tray such as d-click right click .left click...........
    Last edited by adrian1207; Mar 4th, 2013 at 09:13 PM.

  8. #8

    Thread Starter
    Hyperactive Member nickwrs's Avatar
    Join Date
    Jan 2000
    Location
    Atlanta, Ga
    Posts
    398

    Re: Menu in the system tray

    I'm sorry it's been so long since I used VB6 I'm having a hard time recalling how to add a handler. I was hoping you were using a newer IDE and were just posting in the forum for ease. I'll try to find old code and get back to you.

  9. #9
    Member
    Join Date
    Jan 2013
    Posts
    48

    Re: Menu in the system tray

    Quote Originally Posted by nickwrs View Post
    I'm sorry it's been so long since I used VB6 I'm having a hard time recalling how to add a handler. I was hoping you were using a newer IDE and were just posting in the forum for ease. I'll try to find old code and get back to you.
    thank you

  10. #10
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141

    Re: Menu in the system tray

    I don't know if it will help you but a while back I did a sys tray usercontrol. You should be able to get an idea how to do a menu from it. Load up the vbg file and see if you can make anything of it.
    Attached Files Attached Files

  11. #11
    Member
    Join Date
    Jan 2013
    Posts
    48

    Re: Menu in the system tray

    Quote Originally Posted by MarkT View Post
    I don't know if it will help you but a while back I did a sys tray usercontrol. You should be able to get an idea how to do a menu from it. Load up the vbg file and see if you can make anything of it.
    do have i compile verison for this " .ocx"

  12. #12
    PowerPoster
    Join Date
    Aug 2011
    Location
    B.C., Canada
    Posts
    2,887

    Re: Menu in the system tray

    Try it and see! Experiment. I haven't look at MarkT's code but I'm sure its good and it looks like its an ocx which you can either compile and load it as a control from your component list (you might ha e to browse to the ocx file location) or you could simple add it as a usercontrol to your form and use it!

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