Originally Posted by
zmansquared
i made a form and added a picture box and i want the picture read from a site but it doesnt show up in the pic box and my code has NO errors.
Form1 code
[PHP] Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Start()
Me.AutoSize = True
If My.Computer.Network.IsAvailable = False Then
End If
End Sub[/PHP]
Picbox1 code
[PHP]Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
PictureBox1.ImageLocation = "https://www.wunderground.com/US/CA/San_Diego.html"
If My.Computer.Network.IsAvailable = True Then 'this is same as the other one we did but instead it checks to see if there IS a connection to establish
Me.Text = "Weather in San Diego - " & Date.UtcNow & " Weather is online " & "data supplied by: zmansquared" 'if it is a true network then this will show on the top of the form
End If
End Sub[/PHP]
what did i do wrong?
PictureBox1.ImageLocation = "https://www.wunderground.com/US/CA/San_Diego.html"
You need the .jpg location like:
Code:
PictureBox1.ImageLocation = "https://icons-pe.wunderground.com/data/nids/NKX19_thumb_t.jpg"
The reason its not showing up is because its not a picture, its a website. You need to find the link/url of the picture