Click to See Complete Forum and Search --> : Minimize to SysTray


h3llknite
September 15th, 1999, 11:31 AM
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

Chris Eastwood
September 16th, 1999, 04:08 AM
Lothar's post here :

http://codeguru.developer.com/bbs/wt/showpost.pl?Board=vb&Number=6324&Search=true&Forum=vb&Words=system%20tray&Match=Whole&Topic=&Searchpage=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