Page 1 of 1

how to use WebImage on Gambas 3

Posted: Saturday 4th April 2020 2:20pm
by diaxotora
Hello,
I'm new to Gambas, I use the latest version of Gambas at the time of writing: 3.14.3, I previously did some projects working with the GUI interface and now I want to try web forms but when I insert a WebImage I don't know how to include the link to the image file, unlike PictureBox of the GUI interface there is no property of WebImage which allows to include the link apart from Image what does it seem does not work.
cordially

Re: how to use WebImage on Gambas 3

Posted: Saturday 4th April 2020 3:06pm
by cogier
Hi diaxotora and welcome to the forum.

You need to put a picture(image) in your programs 'Public" folder. then you can use something like. WebImage1.Image = "test.png"

Image

Re: how to use WebImage on Gambas 3

Posted: Saturday 4th April 2020 4:57pm
by diaxotora
Thank you very much cogier, it worked, I have another question when I run the program the browser shows me the window with the sizes and the background color of an old project that I deleted is what you know why ?

Re: how to use WebImage on Gambas 3

Posted: Sunday 5th April 2020 10:02am
by cogier
I can only think that your web browser has cached the page. Try deleting the cache. You should be able to do this from the web browser settings page.

Re: how to use WebImage on Gambas 3

Posted: Sunday 5th April 2020 4:35pm
by diaxotora
thank you very much, it is the cache that is the cause