|
-
Jun 22nd, 2001, 09:51 PM
#1
Thread Starter
Hyperactive Member
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
-
Jun 23rd, 2001, 04:35 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|