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


Messages In This Thread
VB.NET Website Image to PictureBox [SRC] - by Fragma - 05-22-2010, 05:59 AM

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

Forum Jump:


Users browsing this thread: 2 Guest(s)