how to use WebImage on Gambas 3

Post

Posted
Rating:
#1 (In Topic #398)
Trainee
diaxotora is in the usergroup ‘Trainee’
 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
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Guru
cogier is in the usergroup ‘Guru’
cogier is in the usergroup ‘GambOS Contributor’
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"

<IMG src="http://www.cogier.com/gambas/WebForm.png"> </IMG>
Online now: No Back to the top

Post

Posted
Rating:
#3
Trainee
diaxotora is in the usergroup ‘Trainee’
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 ?
Online now: No Back to the top

Post

Posted
Rating:
#4
Avatar
Guru
cogier is in the usergroup ‘Guru’
cogier is in the usergroup ‘GambOS Contributor’
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.
Online now: No Back to the top

Post

Posted
Rating:
#5
Trainee
diaxotora is in the usergroup ‘Trainee’
thank you very much, it is the cache that is the cause
Online now: No Back to the top
1 guest and 0 members have just viewed this.