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. Display Text/Dynamic Icons in System Tray?

Display Text/Dynamic Icons in System Tray?

Scheduled Pinned Locked Moved C#
helpquestionlearning
2 Posts 1 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.
  • M Offline
    M Offline
    Mario12345
    wrote on last edited by
    #1

    Hello! I would like to display some little information (numbers to be exactly) in the system tray. I tried successfully to display an Icon there (NotifyIcon), but this is of course static. Is it possible to display Text/numbers in the tray? When it is not, are there possibilities to dynamically create/draw icons at runtime to display them? Thanx for any help Mario

    M 1 Reply Last reply
    0
    • M Mario12345

      Hello! I would like to display some little information (numbers to be exactly) in the system tray. I tried successfully to display an Icon there (NotifyIcon), but this is of course static. Is it possible to display Text/numbers in the tray? When it is not, are there possibilities to dynamically create/draw icons at runtime to display them? Thanx for any help Mario

      M Offline
      M Offline
      Mario12345
      wrote on last edited by
      #2

      Hello. Solved it with: // Create Bitmap Bitmap TestBitmap = new Bitmap(16,16,PixelFormat.Format32bppArgb); // Draw whatever you want for (int i=0; i<16; i++) TestBitmap.SetPixel(i,i,Color.Red); // Show as Icon IntPtr PtrIcon = TestBitmap.GetHicon(); this.MyTrayIcon.Icon = Icon.FromHandle(PtrIcon); MyTrayIcon is a "NotifyIcon", Other PixelFormat may be better, This is just a code-snipped... Mario

      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