Results 1 to 12 of 12

Thread: [RESOLVED] Add programs to the windows startup

  1. #1

    Thread Starter
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Resolved [RESOLVED] Add programs to the windows startup

    I have developed a programe named as exeproject.vbp , After Installation through package and devlopement wizard, i want my program icon to be placed in task bar icon. How can i do this.

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Add programs to the windows startup

    do you mean add you program down in the tray by the clock?
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3
    Fanatic Member vivek_master146's Avatar
    Join Date
    Apr 2006
    Location
    Delhi,India
    Posts
    787

    Re: Add programs to the windows startup

    Do u mean Startup or taskbar? If startup then u can do it by copying the file by filecopy in the startup folder.
    Dont rely only on your luck. Work hard until You get success.
    vb Code:
    1. Private sub Time_ispassing
    2. While Me.Notgetsuccess
    3. trygain=tryagain+1
    4. Me.workhard
    5. wend
    6. end sub

  4. #4

    Thread Starter
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Add programs to the windows startup

    Hi Static,
    Thanks for the reply.Yes I want to add in the tray by the clock?

  5. #5
    Addicted Member
    Join Date
    Apr 2006
    Location
    Sweden
    Posts
    173

    Lightbulb Re: Add programs to the windows startup

    try this stuff...works great for me!

    If you have any problems with it...just ask!

    Please rate if it works!

    //Alex
    Attached Files Attached Files
    Please Help Us To Save Ana

    You never fail before you stop trying!
    ______________________________
    If I manage to say something good...please reputate
    ______________________________
    ________

    Links:
    Intellithing
    Digitala.nu
    Norrköpings Goklubb
    WoW Trade Center

  6. #6

    Thread Starter
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Add programs to the windows startup

    Hi cyber alex,
    Thanks for the Post.I need the my form has to be placed automatically whenever windows starts

  7. #7
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Add programs to the windows startup

    put a shortcut to your app in the startup folder
    or
    add you app to the registry in the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  8. #8
    Addicted Member
    Join Date
    Apr 2006
    Location
    Sweden
    Posts
    173

    Re: Add programs to the windows startup

    okey...then you'll just have to use the Task Icon.zip code and install your exe program into the Startup folder.
    Please Help Us To Save Ana

    You never fail before you stop trying!
    ______________________________
    If I manage to say something good...please reputate
    ______________________________
    ________

    Links:
    Intellithing
    Digitala.nu
    Norrköpings Goklubb
    WoW Trade Center

  9. #9

    Thread Starter
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Add programs to the windows startup

    Please Explain

  10. #10
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Add programs to the windows startup

    and as a tip... Cyber_alex's code will work to add the icon.. but I would recommend putting a lot of the code into a module.. to keep it cleaner
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  11. #11
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Add programs to the windows startup

    TrayIcon:
    Shell_NotifyIcon API.
    How To Manipulate Icons in the System Tray with Visual Basic

    @Vivek:
    Copying the whole exe is not a good idea. That exe may need many other files in App.Path.
    Adding just a shortcut in startup folder or, Add/Remove your program to computer startup (through the registry) will do the trick.

    Edit: I'm very slow today.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  12. #12
    Addicted Member
    Join Date
    Apr 2006
    Location
    Sweden
    Posts
    173

    Re: Add programs to the windows startup

    mm, If you add your app into the registry in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run and put your program in the startup folder the program will automaticly startup when Windows starts.
    And with the Task Icon code that I posted it will be added as a Task Icon.

    Hope it works!
    Please Help Us To Save Ana

    You never fail before you stop trying!
    ______________________________
    If I manage to say something good...please reputate
    ______________________________
    ________

    Links:
    Intellithing
    Digitala.nu
    Norrköpings Goklubb
    WoW Trade Center

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