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
Printable View
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
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.
Make use of the UnloadMode parameter that provided in the Queryunload event.
Cheers!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
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
You can find out here
code sample by Sam Hugill
http://www.vbsquare.com/tips/tip178.html
DocZaf
{;->
Are you talking abt the System Tray Icon?
yeah :)
take a look on the code in the link which Zaf Khan was given in his post.