Results 1 to 7 of 7

Thread: VB project works in the Background

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2000
    Posts
    16
    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

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Just make it invisible and it will work in the background without the user knowing that.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  3. #3
    New Member
    Join Date
    Dec 2000
    Posts
    8

    Thumbs up 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.


  4. #4
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987
    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}

  5. #5
    Guest
    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

  6. #6
    Guest
    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]

  7. #7
    Guest
    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
  •  



Click Here to Expand Forum to Full Width