• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • Last Modified:

Program run in background mode

How do I make a program run in background mode - preferably with it's icon in the bottom right status window?
0
basica
Asked:
basica
  • 4
  • 2
1 Solution
 
mcriderCommented:
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
 
aminerdCommented:
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
 
basicaAuthor Commented:
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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
mcriderCommented:
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
 
mcriderCommented:
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
 
basicaAuthor Commented:
Thanks.
0
 
mcriderCommented:
Thanks for the points! Glad I could help!


Cheers!®©
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now