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. Create TaskBar Icon

Create TaskBar Icon

Scheduled Pinned Locked Moved C#
question
4 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.
  • T Offline
    T Offline
    treuveni
    wrote on last edited by
    #1

    Hello, How can i create an icon (like in MSN) when the user launch the application? and to close it he have to close it from the TaskBar? thank alot...

    A D 2 Replies Last reply
    0
    • T treuveni

      Hello, How can i create an icon (like in MSN) when the user launch the application? and to close it he have to close it from the TaskBar? thank alot...

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      You mean, Notify Icon on System Tray :) Have a look into this, Notify Icon in System Tray with Context Menu Using C#[^]

      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

      K 1 Reply Last reply
      0
      • T treuveni

        Hello, How can i create an icon (like in MSN) when the user launch the application? and to close it he have to close it from the TaskBar? thank alot...

        D Offline
        D Offline
        DaveyM69
        wrote on last edited by
        #3

        By the task bar I assume you mean the system tray. You need to handle the FormClosing event and add a NotifyIcon. In the FormClosing, check if the form is Visible. If true, then hide the form, show the notify icon and set e.Cancel to true. All that's left to do then is add a context menu to the notify icon so you can provide a way to exit and handle left/right/double click on the notify icon for unhiding the form and hiding the icon.

        Dave
        Generic BackgroundWorker - My latest article!
        BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
        Why are you using VB6? Do you hate yourself? (Christian Graus)

        1 Reply Last reply
        0
        • A Abhijit Jana

          You mean, Notify Icon on System Tray :) Have a look into this, Notify Icon in System Tray with Context Menu Using C#[^]

          Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

          K Offline
          K Offline
          khosnur
          wrote on last edited by
          #4

          Thanks abhijit its nice Shafik

          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