Results 1 to 7 of 7
  1. #1
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful

    Question [Help]PictureBox[Solved]

    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?
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  2. #2
    Bombsaway707's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Gym
    Posts
    8,799
    Reputation
    791
    Thanks
    4,004
    My Mood
    Amused
    Quote Originally Posted by zmansquared View Post
    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

  3. #3
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    Ok, that works but the pic is tiny. how do i make it fit to the screen
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  4. #4
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    Set background as stretch?

  5. #5
    Bombsaway707's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Gym
    Posts
    8,799
    Reputation
    791
    Thanks
    4,004
    My Mood
    Amused
    Yeah, set backround to stretch or find a larger image. Your choice xD

  6. #6
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    alright thanks. it works
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  7. #7
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    /Solved

    /Closed


     


     


     



    The Most complete application MPGH will ever offer - 68%




Similar Threads

  1. [Help Request] Please help me solve the hackers!
    By j148148 in forum Alliance of Valiant Arms (AVA) Help
    Replies: 2
    Last Post: 07-05-2011, 12:39 PM
  2. [Help]PictureBox and Image properties[solved]
    By AceKill3r in forum Visual Basic Programming
    Replies: 17
    Last Post: 02-12-2011, 11:48 PM
  3. [HELP] Video Picturebox?[Solved]
    By tempta43 in forum Visual Basic Programming
    Replies: 12
    Last Post: 11-29-2010, 05:58 PM
  4. [Help]PictureBox Frame [Solved]
    By ppl2pass in forum Visual Basic Programming
    Replies: 12
    Last Post: 04-06-2010, 07:58 PM
  5. [Help]Progressbar[Solved]
    By Shocker2010 in forum Visual Basic Programming
    Replies: 2
    Last Post: 03-06-2010, 02:03 PM