954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Retriving image from resource folder

Hi Guys,

i am in a fix big fix. I have completed my vb project and have created the set up files as well.. Now when I try to install my program on another machine then it gives me an error. I found out the problem and it seems to be two of the images are not loading even though i have saved them in my application folder..
But when i save them in the resource folder the program runs but does not displays the images stored in the resource folder.
Could anyone please help me to retrieve .png image from resource folder
this is what i am using currently
dim tick as image
tick = My.Resources.ResourceManager.GetObject("button-tick.png")

Thanks a lot
ashwin

ashwinshenoy
Newbie Poster
18 posts since Apr 2011
Reputation Points: 10
Solved Threads: 0
 

In the resources tab of your project properties, you need to import the image into the resources of the project (not the resource folder). This will create a resource file containing the resources of text, images, icons and any other kind of serializable object you need.

Hope this helps

lolafuertes
Master Poster
793 posts since Oct 2008
Reputation Points: 120
Solved Threads: 166
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: