Solved

Program run in background mode

Posted on 2000-03-24
7
149 Views
Last Modified: 2010-05-02
How do I make a program run in background mode - preferably with it's icon in the bottom right status window?
0
Comment
Question by:basica
  • 4
  • 2
7 Comments
 
LVL 14

Expert Comment

by:mcrider
ID: 2655264
Check out the following microsoft KB articles:

HOWTO: Use the System Tray Directly from Visual Basic
http://support.microsoft.com/support/kb/articles/Q176/0/85.ASP?LNG=ENG&SA=MSDN&FR=0 

HOWTO: Manipulate Icons in the System Tray with Visual Basic
http://support.microsoft.com/support/kb/articles/Q162/6/13.asp?LNG=ENG&SA=MSDN&FR=0 


Cheers!®©
0
 
LVL 5

Expert Comment

by:aminerd
ID: 2656454
You can use mcrider's code to put the icon in the tray. Then just hide the form (Form.Hide) When the tray icon is clicked or double clicked, show the form again.
0
 

Author Comment

by:basica
ID: 2656752
Excellent!  Thanks for both your help.  Who do I give the points to??  Perhaps if one of you could just tell me how to actually design an .ico file for the system tray - I've tried Photoshop, that won't do it.  Which is the best program to use?
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
LVL 14

Expert Comment

by:mcrider
ID: 2656858
Go to www.shareware.com and do a search for "icon editor" (don't include the quotes) there are several shareware Icon editors there...


Cheers!®©
0
 
LVL 14

Accepted Solution

by:
mcrider earned 40 total points
ID: 2656866
aminerd, the Hide is part of the example I pointed Basica to:

      Private Sub Form_Resize()
       'this is necessary to assure that the minimized window is hidden
       If Me.WindowState = vbMinimized Then Me.Hide
      End Sub
0
 

Author Comment

by:basica
ID: 2656912
Thanks.
0
 
LVL 14

Expert Comment

by:mcrider
ID: 2657647
Thanks for the points! Glad I could help!


Cheers!®©
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

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