i want to display picture from website in a text box. However, this picture already shows up in the browser prior to my wanting to display it in a picturebox. My problem is, i dont want my app to download the image file a second time as many images are very large.
Is there anyway to dynamically grab the reference to the file from the axwebbrowser control's contents?
Currently i have no problem displaying the picture in the picbox using the following code:
vb Code:
Friend Sub ImageDisplayInPictureBox(ByRef myPicturebox As PictureBox, ByVal strUrl As String) myPicturebox.Image = New System.Drawing.Bitmap(New IO.MemoryStream(New System.Net.WebClient().DownloadData(strUrl))) End Sub
I would imagine I would need to reference the axwebbrowser controls html doc and somehow find the substring of the picturebox, but how to display data in a seperate container outside of the web browser?
Any help would be appreciated.![]()




Reply With Quote