I found the problem . sorry it's my fault . I mess up some code while try to
rewrite my program in gb2 to gb3.
Benoît Minisini wrote:
>
>> I having strange problem with PictureBox to display image.
>>
>> if I choose the image from picturebox properties , the image show up but
>> when I do i
> I having strange problem with PictureBox to display image.
>
> if I choose the image from picturebox properties , the image show up but
> when I do it from program , the picture not showing .
>
> in the program I do this
> picturebox1.picture = picture[application.path & "/image/back.png"]
>
>
Make sure you aren't ending up with two /'s between the path and the
filename when you concatenate them with &. Also, do the ones that work
(or the ones that don't) have something in common in terms of the
filename? Maybe something to do with the length of the filename, or
special characters
I try your suggestion and this time error show up ("unable to load image")
when i run .
I have few image (png) in that folder with same size . I try few of them and
found that some ok but some not .
I can load the all the image from the picturebox properties without any
problem
is this a bugs
Have you tried:
picturebox1.Picture = Picture.load(application.path & "/image/back.png")
If only part of your picture is showing, try setting the "stretch"
property of the Picturebox control to "True".
Bill Richman - Lincoln, Nebraska
Tilter at windmills, maker of pies in the sky, & curmudgeon
I having strange problem with PictureBox to display image.
if I choose the image from picturebox properties , the image show up but
when I do it from program , the picture not showing .
in the program I do this
picturebox1.picture = picture[application.path & "/image/back.png"]
I found out tha