|
-
Nov 28th, 2000, 05:44 AM
#1
Thread Starter
Junior Member
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
It's nice to be important BUT It's more important to be nice
-
Nov 28th, 2000, 06:12 AM
#2
Frenzied Member
Just make it invisible and it will work in the background without the user knowing that.
-
Dec 21st, 2000, 11:35 PM
#3
New Member
working invisible
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.
-
Dec 22nd, 2000, 12:44 AM
#4
Fanatic Member
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).
{Insert random techno-babble here}
{Insert quote from some long gone mofo here}
-
Dec 22nd, 2000, 02:32 PM
#5
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
-
Dec 25th, 2000, 08:36 AM
#6
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]
-
Dec 26th, 2000, 08:25 AM
#7
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|