Solved

Program run in background mode

Posted on 2000-03-24
7
158 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

688 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