oksice there is no way to grab an image using its source i was wondering if there is a way to taking a screen pic at a certain x,y coordinates in a webbrowser1 then displaying it in a picture box.
Thank you.
Printable View
oksice there is no way to grab an image using its source i was wondering if there is a way to taking a screen pic at a certain x,y coordinates in a webbrowser1 then displaying it in a picture box.
Thank you.
Try to play with graphics.CopyFromScreen
hey i think we both have the same problem
did you want to get an image from your webbrowser1 and put it into your picturebox1?
cause what i am trying to do is this:
captchaSF_Image is the id of the picture I want in my picturebox1.Code:Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WebBrowser1.Navigate("http://passport.nexon.net/Registration/Signup.aspx?nexonTheme=Maplestory")
Dim O As Object
O = WebBrowser1.Document.Body.GetElementsByTagName("captchaSF_Image")
Call O.execCommand("Copy")
PictureBox1.Image = Clipboard.GetImage
End Sub
The only problem I have is that by the time I try to copy the image to my clipboard and then paste it in picturebox1 the web page isn't even finished downloading.. so there isn't even a picture there for me to get.
EDIT: Okay, I just tried making a button that I press that does all of that after the page is loaded but I get an error with my "Call O.execCommand("Copy")"
I guess I need a new method for copying the image to the clipboard. Anyone else have an idea?
EDIT: Tried "mnuCopy_Click()" didn't work. :(