Results 1 to 5 of 5

Thread: Load on startup and icon on system tray

  1. #1

    Thread Starter
    Lively Member UTGrim's Avatar
    Join Date
    Jan 2005
    Location
    Brazil
    Posts
    92

    Load on startup and icon on system tray

    I want a program I made to be running in the background from startup (option set by user) and have an icon in the system tray.

    Can anybody help me with those two things?

    Thanks!

  2. #2
    Frenzied Member
    Join Date
    May 2003
    Location
    Sydney
    Posts
    1,123

    Re: Load on startup and icon on system tray

    having an icon on the system tray has been discussed more than once. do a search and u'll come with lots of answers.

    running in the background needs u to use some api calls. have a look at the api guide at http://www.mentalis.org

    loading on startup can have different approaches. one is to put a link in the programs>startup and another is to put a link in the registry at HKCU/software/microsoft/windows/currentversion/run

  3. #3
    Member angbermu's Avatar
    Join Date
    Aug 2005
    Posts
    42

    Re: Load on startup and icon on system tray

    I have left the code for api a think 3 or post ago, can you search, if you have question ask me
    "Oportunity is never lost, just found by someone else..."

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Load on startup and icon on system tray

    This should help with the systray

    http://vbforums.com/attachment.php?attachmentid=37005

    Search the forums for startup, and you should get a lot of hits, as it's been discussed even more than the system tray. You can even get a system tray icon with a pop-up menu in it.

  5. #5
    New Member EckoDOG's Avatar
    Join Date
    Dec 2005
    Location
    marz
    Posts
    8

    Re: Load on startup and icon on system tray

    Here you got just copy and paste it. I think this is dglienna code that he gave me on here.A couple of weeks ago.

    VB Code:
    1. Private Sub Form_Load()
    2. 'Add the program to regedit. So it runs each time the computer restarts.
    3. Dim sAppEXE As String
    4.   sAppEXE = App.Path & IIf(Right$(App.Path, 1) = "\", "", "\") & App.EXEName & ".exe"
    5.     SaveSettingString HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Run", App.Title, Chr$(34) & sAppEXE & Chr$(34)
    6. End Sub
    Gmail Invites Private Messages me your email

    "A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every difficulty"(Winston Churchill).

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