Click here to Skip to main content
15,915,869 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
Prperties.Resources.img.Tables[0].Rows[i]["Image"].ToString();

it shows an error
image name coming from the database and image stored in the resource folder

how to use this dynamically?
Posted
Updated 21-Aug-11 14:43pm
v2

This not how you access resources. Please read http://www.jelovic.com/articles/resources_in_visual_studio.htm[^] for an example
 
Share this answer
 
This may help too.
C#
pictureBox1.Image=(Image) Resources.ResourceManager.GetObject("ImageName");
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900