CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 1999
    Location
    Calgary, AB
    Posts
    4

    Minimize to SysTray

    Hi All,

    I've setup my program so that I can use a systray icon, and removed the taskbar icon. However, when I minimize my program, it minimizes to the corner of the screen (on top of the taskbar) instead of disappearing to the tray. Any idea what I can do to fix this?

    Thanks


  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Minimize to SysTray

    Lothar's post here :

    http://codeguru.developer.com/bbs/wt...age=0&Limit=25

    - explains about the SysTray.


    Regarding the Minimizing - Why don't you check in the 'Form_Resize' event if your form has been minimized, then simply do a 'me.visible = false' ?

    This way, the click event on the Icon in the SysTray can make your form visible again and restore it to it's normal size.


    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

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

Featured