0

I want to populate my imagelist control by images. For this i want to extract images from resource folder.

I have tried and searched over Google. But i found i can access only one image at a time from resource folder

I have tried in the following way:

Properties.Resources.ImageName  //Accessing a single image by a name 

I want to populate my imagelist by images from resource folder.

rdoubleui
  • 3,554
  • 4
  • 30
  • 51
  • possible duplicate of [Load image from resources](http://stackoverflow.com/questions/13592150/load-image-from-resources) – Sinatr Jun 29 '15 at 12:17
  • Check out the [ResourceReader](https://msdn.microsoft.com/en-us/library/system.resources.resourcereader(v=vs.110).aspx) class. – Zohar Peled Jun 29 '15 at 12:29
  • 1
    Why don't you just add your images to the ImageList using the designer? What's the point of loading items dynamically from a static resource? – VahidNaderi Jun 29 '15 at 12:34
  • I want to provide user to add images in a folder as their need then they can see these images to listview control .I think adding images to imagelist at design time is not user friendly . – Sagar Bista Jun 29 '15 at 13:24
  • Might not be worth the hassle, if I'm allowed to say that. Would it not be user friendly to allow a drag & drop of files or to provide a file open dialog? – rdoubleui Jun 29 '15 at 13:43

0 Answers0