I have an ImageList with a collection of 8 Icons ranging from position 0-7.
I am trying to create a new instance of an Icon from a position in the ImageList.
This code wont work but I believe it may be the basis of the answer, I can't seem to get the syntax correct and get errors relating to converting image to icon.
Can anyone suggest a simple answer to this prob?
Thanx in advance...
I am trying to create a new instance of an Icon from a position in the ImageList.
Code:
Icon myIcon = new Icon(imageList1.Images[0])
This code wont work but I believe it may be the basis of the answer, I can't seem to get the syntax correct and get errors relating to converting image to icon.
Can anyone suggest a simple answer to this prob?
Thanx in advance...