tags:

views:

426

answers:

1

I am designing an app and I want to attach some pictures to the VB forms I have used a picture box and the image is only visible before I debug . Once the debugging starts the images disappears.

Does any one know how to display the image when I run it. This is the code I used for the picture box but still no luck

PictureBox1.Image = My.Resources.tropical_island3

Look forward to hearing from you all

Kind Regards

A: 

This is a possibility, based on the limited info:

If the image is shown in the picturebox before you run the form in debug mode, then it apparently has been assigned at design time to the PictureBox1.Image property. When you run the program and assign My.Resources.tropical_island3 to the Picture Box image, it clears the image because My.Resources on your home computer does not have tropical_island3 like the one at class, or maybe tropical_island3 is spelled incorrectly.

xpda