|
-
Jan 5th, 2001, 12:19 AM
#1
Thread Starter
Addicted Member
How do you make your app stay open and simply minimize to the task bar like napster does when you try and close it?
Thanks
Stephen Haney- 115 116 101 118 101 31 72 65 78 69 89
-ShardsOfSilence.net- ^ My name in ASCII ^
You forget something new every day
| WinME | VB6 Pro | MSC++ | Lambda MOO |
-
Jan 5th, 2001, 01:54 AM
#2
Just guessing here, but couldn't you just put code in the unload event and make it settle into the tray? Then stop the unload event. Of course, you would have to make a menu like napster so you can right click the icon and exit the program that way....
Of course, this is all theory, I haven't done it for myself yet.
-
Jan 5th, 2001, 02:40 AM
#3
PowerPoster
Make use of the UnloadMode parameter that provided in the Queryunload event.
Code:
Option Explicit
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If UnloadMode = vbFormCode Then
Unload Me
Else
Cancel = True
Me.WindowState = vbMinimized
End If
End Sub
Cheers!
-
Jan 5th, 2001, 08:57 PM
#4
Thread Starter
Addicted Member
Hmm..
Not exactly like that... what's the code to dock it in the little bar on the right of the status bar? The one that has like AIM icons and such or whatever programs you have running that take up a spot down there.
Thanks
Stephen Haney- 115 116 101 118 101 31 72 65 78 69 89
-ShardsOfSilence.net- ^ My name in ASCII ^
You forget something new every day
| WinME | VB6 Pro | MSC++ | Lambda MOO |
-
Jan 5th, 2001, 09:26 PM
#5
Fanatic Member
You can find out here
code sample by Sam Hugill
http://www.vbsquare.com/tips/tip178.html
DocZaf
{;->
-
Jan 6th, 2001, 01:08 AM
#6
PowerPoster
Are you talking abt the System Tray Icon?
-
Jan 6th, 2001, 01:15 AM
#7
Thread Starter
Addicted Member
yeah
Stephen Haney- 115 116 101 118 101 31 72 65 78 69 89
-ShardsOfSilence.net- ^ My name in ASCII ^
You forget something new every day
| WinME | VB6 Pro | MSC++ | Lambda MOO |
-
Jan 6th, 2001, 01:24 AM
#8
PowerPoster
take a look on the code in the link which Zaf Khan was given in his post.
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
|