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. How to display notifier for c# console application?

How to display notifier for c# console application?

Scheduled Pinned Locked Moved C#
csharphelptutorialquestion
6 Posts 3 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.
  • A Offline
    A Offline
    AhmedMasum
    wrote on last edited by
    #1

    I want a notifier in the system tray for my c# console application. When I will start my console application it should should notify me and will stay in the system tray. That means in the task bar like antivirus, DAP etc). I can create it for windows application. But I need help to do it for console application...

    L L 2 Replies Last reply
    0
    • A AhmedMasum

      I want a notifier in the system tray for my c# console application. When I will start my console application it should should notify me and will stay in the system tray. That means in the task bar like antivirus, DAP etc). I can create it for windows application. But I need help to do it for console application...

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      http://msdn.microsoft.com/en-us/library/system.windows.forms.notifyicon.aspx[^]

      A 1 Reply Last reply
      0
      • A AhmedMasum

        I want a notifier in the system tray for my c# console application. When I will start my console application it should should notify me and will stay in the system tray. That means in the task bar like antivirus, DAP etc). I can create it for windows application. But I need help to do it for console application...

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        it is exactly the same for console app as for WinForms app. you may have to include a few using statements (e.g. using System.Windows.Forms) which you get for free when you create a WinForms app. :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


        I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


        A 2 Replies Last reply
        0
        • L Lost User

          http://msdn.microsoft.com/en-us/library/system.windows.forms.notifyicon.aspx[^]

          A Offline
          A Offline
          AhmedMasum
          wrote on last edited by
          #4

          Thanks a lotz.......

          1 Reply Last reply
          0
          • L Luc Pattyn

            it is exactly the same for console app as for WinForms app. you may have to include a few using statements (e.g. using System.Windows.Forms) which you get for free when you create a WinForms app. :)

            Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


            I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


            A Offline
            A Offline
            AhmedMasum
            wrote on last edited by
            #5

            Actually I tried it without adding the references. Now this is working fine. thanks.

            1 Reply Last reply
            0
            • L Luc Pattyn

              it is exactly the same for console app as for WinForms app. you may have to include a few using statements (e.g. using System.Windows.Forms) which you get for free when you create a WinForms app. :)

              Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


              I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


              A Offline
              A Offline
              AhmedMasum
              wrote on last edited by
              #6

              I am having another problem after showing the notifier in my console application. I have added context menu. But this is not showing any menu after right click in my notifier. How to solve this???

              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