473,385 Members | 1,587 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,385 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 2836
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.