Re: [Gambas-user] PictureBox problem (Gambas3)

2010-01-15 Thread kobolds
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

Re: [Gambas-user] PictureBox problem (Gambas3)

2010-01-15 Thread Benoît Minisini
> 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"] > >

Re: [Gambas-user] PictureBox problem (Gambas3)

2010-01-14 Thread Bill Richman
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

Re: [Gambas-user] PictureBox problem (Gambas3)

2010-01-14 Thread kobolds
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

Re: [Gambas-user] PictureBox problem (Gambas3)

2010-01-14 Thread Bill Richman
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

[Gambas-user] PictureBox problem (Gambas3)

2010-01-14 Thread kobolds
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