Results 1 to 8 of 8

Thread: Heads up, 7 up.

  1. #1

    Thread Starter
    Addicted Member Mage33's Avatar
    Join Date
    Aug 2000
    Location
    Petaluma, California
    Posts
    138
    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 |

  2. #2
    Guest
    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.

  3. #3
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    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!

  4. #4

    Thread Starter
    Addicted Member Mage33's Avatar
    Join Date
    Aug 2000
    Location
    Petaluma, California
    Posts
    138

    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 |

  5. #5
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    You can find out here
    code sample by Sam Hugill

    http://www.vbsquare.com/tips/tip178.html


    DocZaf
    {;->

  6. #6
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    Are you talking abt the System Tray Icon?

  7. #7

    Thread Starter
    Addicted Member Mage33's Avatar
    Join Date
    Aug 2000
    Location
    Petaluma, California
    Posts
    138

    Talking

    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 |

  8. #8
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Thumbs up

    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
  •  



Click Here to Expand Forum to Full Width