importing 900x600 image to imagelist?

V

VMI

How can I import a 900x600 image into my imagelist? The problem is that
imageList.ImageSize goes to 255x255 and these images will be used as
background for 800x600 (and higher) resolutions.
They can't be in a separate folder. They need to be embedded into the
project.

Thanks.
 
A

Aboulfazl Hadi

Hi VWI
you can add your image to the project and set BuildAction property to
Embeded Resource.

I hope this helps
A.Hadi
 
W

Ward Bekker

Hi VMI,

I think they intended the imagelist to be used for icons and such when
MS created it. Anyway, if you use VS2005 you could take a look at the
properties screen of the project and go to the tab resources. You can
add your images there and reference them typed in code like this

Properties.Resources.MyBackground1


--
Ward Bekker
"Asp.Net Discussions for the Professional Developer"
http://www.dotnettaxi.com

"Free .Net 2.0 C# to/from VB.Net Code Converter"
http://www.dotnettaxi.com/Tools/Converter.aspx
 

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