Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VB.NET Website Image to PictureBox [SRC]
#1
Heres an example of how you can take an image from a website and insert it into a PictureBox on your application.

getimage Function:
Code:
Function getimage(ByVal url As String) As Image
        Using w As New Net.WebClient
            Using s As New IO.MemoryStream(w.DownloadData(url))
                Return Image.FromStream(s).Clone
            End Using
        End Using
End Function

Using the Function: (Under Button_Click)
Code:
PictureBox1.Image = getimage(http://www.IMAGE-URL.com)

Blackhat
Reply
#2
I will try this Dubstep, thanks for the share.
Reply
#3
Not to criticise but you could just save the image and add it as a resource.
But other than that good share.
Reply
#4
Yes I am aware you can do that but the above code is helpful for things such as adding certain profile avatars, captcha images, etc... to your form. It can be used for a lot of things which you cannot do otherwise.
Reply
#5
OMFG. I've been looking for this forever. I coulda used this on some of my programs..
Reply
#6
(05-27-2010, 06:29 PM)Unrated Wrote: OMFG. I've been looking for this forever. I coulda used this on some of my programs..

Its very basic you know. Not that hard lol.

But non the less it will come in use !
Reply
#7
Simple but affective. I like it Smile
[Image: blanktemplate.png]
Reply
#8
I know this it is simple as cake Smile.
Reply
#9
very nice mate...testing this now.
Reply
#10
very nice man ill test it out
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [VB.NET] Animated Form Extend [SRC] Fragma 6 5,537 10-10-2013, 12:18 PM
Last Post: Saket
  [Source] Tricks Using PictureBox Control [VB.NET] Fragma 8 6,489 11-25-2012, 10:32 PM
Last Post: ƃu∀ ıʞƃu∀
  [VB.Net][SRC] YouTube Bot HF~Legend 5 3,656 11-25-2012, 05:54 AM
Last Post: Ixam
  [VB.Net][SRC]ProgressBar Color HF~Legend 14 7,507 09-08-2012, 04:18 PM
Last Post: spesificrelax
  [VB.NET] Basic Reverse Connection RAT [SRC] hasam 1 3,048 02-01-2012, 03:10 PM
Last Post: AceInfinity

Forum Jump:


Users browsing this thread: 1 Guest(s)