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,864 of 10,840   
   Steve Wertz to All   
   How to create backround application   
   27 Jan 06 11:19:32   
   
   From: swertz@cluemail.compost   
      
   Is there a walkthrough or how to that describes the general method   
   for creating an application (in Visual Basic Express)  that has no   
   initial UI, but runs in the background with an icon in the system   
   tray.  A context menu from the notify icon will of course bring up   
   an application UI for settings and exiting, etc...   
      
   This process will simply change the contents of a text file every   
   5 minutes or so.  I don't think I want a Windows Service, and even   
   if I did, I don't seem to have a template for it in the project   
   designer.  I thought I saw one once...   
      
   I basically have the functionality of one right now by using a   
   Windows Form with WindowState=Minimized, Enabled=false,   
   ShowinTaskBar=false, and a NotifyIcon (no context menu yet), but   
   the application takes up 30megs of memory and doesn't even have   
   any code added to it yet.  There must be a more efficient way.   
      
   I see some links in the help files and the MSDN site, but either   
   the links are broken  or I can't find the link to the sample code   
   http://msdn.microsoft.com/library/default.asp?url=/library/en-us   
   vbref/html/vbsamwindowsformssystemtraysample.asp   
   (where's the code?)   
      
   Anbody have any pointers/links to a working sample or tutorial   
   would be appreciated.  What is the terminlogy for such an   
   application - it used to be a TSR, but that's pretty ancient.   
      
   Also - is this the right forum for visual basic questions?  I see   
   several groups with some combination of visual & basic.  Which is   
   the correct group?   
      
   -sw   
      
   --- 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