Dear Sir,
How can i make my VB project works in the background, i.e : to be resident in the memory as for example : Norton Utility ...
Regards,
KWN
Printable View
Dear Sir,
How can i make my VB project works in the background, i.e : to be resident in the memory as for example : Norton Utility ...
Regards,
KWN
Just make it invisible and it will work in the background without the user knowing that.
For that to work successfully. I think you have to make calls to API function available in windows.
you can also try this also
app.taskvisible=false
I think this solve your problem to some extent.
Anyhow to develop your program to work like norton utility you have to use API.
Just remove the form from your project, add a standard .bas module and make sure you have a Procedure called Sub Main() (which is where the program will start) and you will need to run an never ending do loop (don't forget the DoEvents statement).
There are a few way to do this:
1. You create a form, hide it, and devise some way of showing the form (I personally like the system tray icon).
2. You remove/hide a form and run an endless loop like this:
Code:Do
' Dostuff
DoEvents() ' To keep windows from locking up
Loop Until whatever=true
Well i've created an active x control that can
allow you to put icons in the system tray
If any one wants it, email me your email address at
[email protected]
A similar control is available for free from MSDN Online, it works like a charm, you can use WithEvents on it and you'll receive notification whenever someone clicks the icon with whatever mouse button and stuff.
I believe it even includes the source code, but I'm not sure about that.
http://premium.microsoft.com/downloa...ic/systray.exe