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