Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. my application in system tray on windows startup

my application in system tray on windows startup

Scheduled Pinned Locked Moved C#
question
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sasuko
    wrote on last edited by
    #1

    how can i show the icon of my application on system tray bar when windows start up? Thanks

    J P 2 Replies Last reply
    0
    • S Sasuko

      how can i show the icon of my application on system tray bar when windows start up? Thanks

      J Offline
      J Offline
      John Arlen1
      wrote on last edited by
      #2

      Two different questions: 1) Icon in system tray: System.Windows.Forms.NotifyIcon is the class (and sample) you want. 2) Running on windows start: I don't know of any API for this but adding a registry key for your application will do: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run String Key: AppName Value: Full Path to Exe

      S 1 Reply Last reply
      0
      • S Sasuko

        how can i show the icon of my application on system tray bar when windows start up? Thanks

        P Offline
        P Offline
        pubududilena
        wrote on last edited by
        #3

        hi 1) drag and drop the Notify Icon from the tool box. 2) In the Icon properties, you can set the Icon and Visble as true Then it appears when to the tray bar. 3) Do you need to start the Program at the start up,Simple way is added to application shortcut start up directory or do it using setup wizard . regards , pubudu.

        1 Reply Last reply
        0
        • J John Arlen1

          Two different questions: 1) Icon in system tray: System.Windows.Forms.NotifyIcon is the class (and sample) you want. 2) Running on windows start: I don't know of any API for this but adding a registry key for your application will do: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run String Key: AppName Value: Full Path to Exe

          S Offline
          S Offline
          Sasuko
          wrote on last edited by
          #4

          for the second answer: how can i create a registry key during setup of my application? on the value "Full Path to Exe", how can know it (and set it on setup time) if the user during the setup chooses a custom directory on its computer?

          D 1 Reply Last reply
          0
          • S Sasuko

            for the second answer: how can i create a registry key during setup of my application? on the value "Full Path to Exe", how can know it (and set it on setup time) if the user during the setup chooses a custom directory on its computer?

            D Offline
            D Offline
            Drew Noakes
            wrote on last edited by
            #5

            If you're using an MSI-type installer project in Visual Studio, you can add registry keys via the registry view of said project. Drew Noakes drewnoakes.com

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups