Solved

Program run in background mode

Posted on 2000-03-24
7
153 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
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…
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…

730 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