Add images to ImageList

Add-in Express™ Support Service
That's what is more important than anything else

Add images to ImageList
How do I add images to the imagelist 
Mat Folz




Posts: 1
Joined: 2011-06-10
I was wondering how do I add images to the imagelist.This is what I have tried:


Me.newImageList = New System.Windows.Forms.ImageList(Me.components)
Dim relativityImage = System.Drawing.Image.FromFile("C:\Users\mfolz.KCURA\Pictures\Relativity-Button.png")
newImageList.Images.Add(relativityImage)


I also Tried:

Me.newImageList = New System.Windows.Forms.ImageList(Me.components)
newImageList.Images.SetKeyName(0, "C:\Users\mfolz.KCURA\Pictures\Relativity-Button.png")
Posted 10 Jun, 2011 10:01:57 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hi Mat,

Please check http://msdn.microsoft.com/en-us/library/system.windows.forms.imagelist.images.aspx.


Andrei Smolin
Add-in Express Team Leader
Posted 10 Jun, 2011 11:25:03 Top