A BMP file has three images in C# project

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

HI I have a question defined as below:
* One BMP file has 3 images for a list view control.
* Say, this file path is c:\ xyz.bmp.
* ImageList object name is smallImageList.
* My question is how to put the file path in the C# project.
* Then I can see 3 images in the image collection editor by open....
* And, I can refer it as below:
this.smallImageList.ImageStream = (ImageListStreamer)resources.GetObject("smallImageList.ImageStream");
Please advice.
Peter
 
You must add the xyz.bmp to your project and set it as an "Embeded Resource". Then you can refer it the way you are trying to..
 
Back
Top