PDA

Click to See Complete Forum and Search --> : ImageList Picture to TrayIcon IconPicture


Nigh™aŽe
Sep 30th, 2002, 05:51 AM
Hi,

I made a small tool using a Tray Icon.
Now i want to change the icon, using icons loaded into a ImageList Control.

How can i convert the pictures to Icons.

The only way i found to change the icon is:
Private _IconActive As System.Drawing.Icon = New System.Drawing.Icon(Application.StartupPath & "\Active.ico")

This way i have to copy the icons into my Bin folder.
An other way i try is using the RESX files.
There i have the problem, i can't find a good recourse editor to add the needed icons to the resource file.

Other sollutions are also welcome :)

Edneeis
Sep 30th, 2002, 10:43 AM
Here is how to convert an image in an imagelist to an icon:
http://www.vbforums.com/showthread.php?s=&threadid=194560&highlight=Icon+Image