A BMP file has three images in C# project

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
 
G

Guest

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..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top