Results 1 to 6 of 6

Thread: [RESOLVED] minimizing form to system tray...

  1. #1

    Thread Starter
    Hyperactive Member rajbdilip's Avatar
    Join Date
    Feb 2010
    Location
    Kathmandu, Nepal
    Posts
    263

    Resolved [RESOLVED] minimizing form to system tray...

    Hello guys. I'm back to the forum after a long time. Anyway, got a problem to be solved.

    I want my form to be minimized in to system tray with icon that i specify. I googled it found the use of resource file. I didn't get it. How to use resource file? And as a ultimate goal, how do I minimize my form when minimized?

    Thanks...
    A Young Self-Taught Programmer || VB6 | VB.NET (Visual Studio 2010) | Java |CSS | JavaScript | PHP | MySQL

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: minimizing form to system tray...

    Search the CodeBank section for: system tray. There is a project in there that is really straightforward.
    By the way, you don't actually minimize your form when it goes to the system tray, you either hide it or move it far off the screen.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3
    PowerPoster Ellis Dee's Avatar
    Join Date
    Mar 2007
    Location
    New England
    Posts
    3,530

    Re: minimizing form to system tray...

    Link in my signature.

  4. #4
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: minimizing form to system tray...

    Quote Originally Posted by LaVolpe View Post
    Search the CodeBank section for: system tray. There is a project in there that is really straightforward.
    By the way, you don't actually minimize your form when it goes to the system tray, you either hide it or move it far off the screen.
    Well you can't just move the window off the screen because the app can still get focus and the user could be changing things in the app without even knowing it, plus if you use the show in taskbar option the app would still be in the task bar making the tray icon sort of pointless wouldn't it?

    I just set up all my tray apps so they hide when they detect they are minimized in the forms resize event.

  5. #5
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: minimizing form to system tray...

    Another helpful thing to know is that the official name for this is the "Notification Area" rather than the "System Tray." This is most helpful when you want to search authoritative documentation such as the MSDN Library.

    Microsoft seems to be a little schizophrenic about this themselves, sometimes using "tray" to mean the whole Taskbar, sometimes to mean the Notification Area. So its no wonder that Mort and the tinkerer community get confused.

  6. #6

    Thread Starter
    Hyperactive Member rajbdilip's Avatar
    Join Date
    Feb 2010
    Location
    Kathmandu, Nepal
    Posts
    263

    Re: minimizing form to system tray...

    thanks guys......
    A Young Self-Taught Programmer || VB6 | VB.NET (Visual Studio 2010) | Java |CSS | JavaScript | PHP | MySQL

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