NotifyIcon and runtime Icons

  • Thread starter Thread starter Scatropolis
  • Start date Start date
S

Scatropolis

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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top