Results 1 to 7 of 7
  1. #1
    alvaritos's Avatar
    Join Date
    May 2008
    Gender
    male
    Posts
    234
    Reputation
    9
    Thanks
    73
    My Mood
    Amazed

    Cool Imagebox Loading Images [solved]

    Well Hello,
    I have a listbox with some URL of some images, and a picturebox, my question is . . . how I make that the picturebox load the image of the URL Selected in the listbox?
    thanks . . .

  2. #2
    TheBest-1337's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    35
    Reputation
    15
    Thanks
    38
    My Mood
    Goofy
    [highlight=vb.net]PictureBox1.ImageLocation = ListBox1.SelectedItem[/highlight]

    That's what I thought of top of my head. Idk if it works but give it a try

  3. The Following User Says Thank You to TheBest-1337 For This Useful Post:

    alvaritos (06-04-2011)

  4. #3
    alvaritos's Avatar
    Join Date
    May 2008
    Gender
    male
    Posts
    234
    Reputation
    9
    Thanks
    73
    My Mood
    Amazed
    LoL it works, thanks! xD

    Also How I make it downloads the image of the URL?
    Last edited by alvaritos; 06-04-2011 at 11:22 AM.

  5. #4
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    My.Computer.Network
    or My.Network.DownloadSomething


    search on that places..i forgot, its something with network and downloafile

  6. #5
    TheBest-1337's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    35
    Reputation
    15
    Thanks
    38
    My Mood
    Goofy
    Quote Originally Posted by alvaritos View Post
    LoL it works, thanks! xD

    Also How I make it downloads the image of the URL?
    Try this code:

    [highlight=vb.net]My.Computer.Network.DownloadFile(ListBox1.Selected Item)[/highlight]

  7. #6
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    I recommend going for a webclient, since you can easily track the progress with it.
    [highlight="VB.Net"]
    withevents wc as new net.webclient[/highlight]
    [highlight="VB.Net"]
    wc.downloadfile(listbox1.selecteditems(0))[/highlight



  8. #7
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Marked solved, seeing as you released it.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)