home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,743 of 10,840   
   MikeD to Nicolas Poirier   
   Re: Info with system tray apps   
   09 Nov 05 21:31:51   
   
   XPost: comp.lang.basic.visual, comp.lang.basic.visual.misc, micr   
   soft.public.vb.general.discussion   
   From: nobody@nowhere.edu   
      
   "Nicolas Poirier"  wrote in message   
   news:Ejvcf.14673$1L3.623284@news20.bellglobal.com...   
   >I successfully made a system tray application.   
   > When I do shut down the computer, how does the computer can instruct my   
   > application to shut down?   
   > For the moment, if I don't quit my application, system asks to kill an   
   > unresponsive task before shut sown.   
   > How does I make shut down run more correctly?   
      
      
   Unless there's something weird going on with your app, it should just   
   normally upon Windows shutting down.  There's something "not right" about   
   your app that's preventing it from properly closing. Perhaps it has to do   
   with having added an icon to the system tray.  You're not using WM_MOUSEMOVE   
   as the callback message (which is a hack), are you?  Is your main form the   
   form used to add the icon to the system tray (IOW, the form used to specify   
   the hwnd of the NOTIFYICONDATA structure)?   
      
   You most likely need to post your code on how you're adding an icon to the   
   system tray as well as your shutdown code.  That way, we can see exactly   
   what you're doing.   
      
   --   
   Mike   
   Microsoft MVP Visual Basic   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca