473,394 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

NotifyIcon and runtime Icons

I'm trying to create Images/Bitmaps during runtime and converting them to
icons so I can use them for the NotifyIcon class. I searched but couldn't
find anything about this. I know all about creating images and editing
them...it's the "getting the image to the tray" part that's getting me.

Thanks
Nov 16 '05 #1
2 2837
Scatropolis,

Have you set the Icon property on the NotifyIcon class? This will allow
you to set the icon of the item in the tray.

In order to change the image/bitmap into an Icon, you can try to call
the Save method, passing in a MemoryStream, and an ImageFormat of Icon. You
can then call the constructor for the Icon class, passing the memory stream.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Scatropolis" <ch*****@frayed.net> wrote in message
news:OZ**************@tk2msftngp13.phx.gbl...
I'm trying to create Images/Bitmaps during runtime and converting them to
icons so I can use them for the NotifyIcon class. I searched but couldn't
find anything about this. I know all about creating images and editing
them...it's the "getting the image to the tray" part that's getting me.

Thanks

Nov 16 '05 #2
Scatropolis,

Have you set the Icon property on the NotifyIcon class? This will allow
you to set the icon of the item in the tray.

In order to change the image/bitmap into an Icon, you can try to call
the Save method, passing in a MemoryStream, and an ImageFormat of Icon. You
can then call the constructor for the Icon class, passing the memory stream.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Scatropolis" <ch*****@frayed.net> wrote in message
news:OZ**************@tk2msftngp13.phx.gbl...
I'm trying to create Images/Bitmaps during runtime and converting them to
icons so I can use them for the NotifyIcon class. I searched but couldn't
find anything about this. I know all about creating images and editing
them...it's the "getting the image to the tray" part that's getting me.

Thanks

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Phil Galey | last post by:
VB.NET 2002 on Windows 2000 SP 3 When I start my program, the NotifyIcon appears in the tray, as it should. However, when I close the program, the NotifyIcon remains until I hover over it with...
0
by: Scatropolis | last post by:
I'm trying to create Images/Bitmaps during runtime and converting them to icons so I can use them for the NotifyIcon class. I searched but couldn't find anything about this. I know all about...
10
by: james | last post by:
My app has a notify Icon, but after the app exits, the Icon is still visible, and then when I runthe app multiple times I get multiple icons so that my status bas keeps accumulating them to the...
2
by: n_o_s_p_a__m | last post by:
Hey all, which program(s) should I use and what should the size be for desiging a new ico file which will be a notifyicon?
2
by: Amjad | last post by:
Hi, I'm using the NotifyIcon to process some text files in the background periodically. I want to display one icon in the task bar when the program is in stand by mode, and I want to display...
0
by: nospam | last post by:
I have an application that is made up of a single module for my global variables and then multiple classes. There is no form. I am using a notifyicon as my notification(Basically different...
3
by: Eran.Yasso | last post by:
Hi all, I have app that adds notifyicon to systemtray. I want to highlight the notifyicon. Can anyone help me with that or show me a link? TIA, eyasso
2
by: JR | last post by:
Hi, I need to change the notifyicon in a countdown. after about 3000-5000 times there is an error. Here is all the code. what is wrong please help
2
by: deciacco | last post by:
I have a NotifyIcon application. (c# 2) I want to be able to catch a kill/shutdown attempt so that I can call Dispose() to remove the icon. I tried to create an event handler for ApplicationExit...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.