Results 1 to 2 of 2

Thread: tray icon help

  1. #1

    Thread Starter
    Hyperactive Member zer0_flaw's Avatar
    Join Date
    Apr 2001
    Posts
    448

    Exclamation tray icon help

    I used the code found here posted by megatron to make my program add itself as an icon to the system tray while running. I still have a couple questions that weren't covered in that code though:

    1) How do I make my program minimize itself so all I can see is the icon in the system tray? I mean I want to click a button and the form goes away but the icon stays in the system tray and the program continues to run.

    2) How can I make it so when I right click the icon in the system tray a menu pops up?

    Thanks in advance for your help. Later,

    -zer0 flaw

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    1. Simply hide your form: FormName.Hide
    2. In the MouseMove event in your frmTray you have a Select Case statement with the WM_RBUTTONDOWN case. Simply add code there to popup a menu: Me.PopUpMenu mnuPopUp

    Best regards

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