Solved

Terminate-and-stay-resident

Posted on 1998-07-09
3
293 Views
Last Modified: 2012-08-14
Hello,
How would one go about to make a application a tsr? I am working on a small app that monitors activity on a pc and it would be ideal to have the program hidden.  Any help would be fantastic.
Thank you in advance,
=Rob2000
0
Comment
Question by:rob2000
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
clifABB earned 50 total points
ID: 1465292
You can hide an application by simply creating it without a form or hiding a form (Form1.Visible = False).

A better idea (and more in line with Windows standards) is to put an icon in the Tray (where the clock is). To do this, you can use an OCX such as SysTray32.ocx available at:
http://www.download.com/PC/Result/TitleDetail/0,4,0-37597,501000.html

0
 

Expert Comment

by:Laqua
ID: 1465293
As for clifABB's suggestion about the ocx, there is no need for an ocx. Goto the address below and use the code given.

http://support.microsoft.com/support/kb/articles/q176/0/85.asp
0
 
LVL 6

Expert Comment

by:clifABB
ID: 1465294
Lanqua:
Too much code to maintain.  Especially when the OCX is free.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question