hi.. vb forumers...![]()
i have a problem...![]()
this my Code:
and this a form previewCode:Imports System.Web Imports mshtml Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click WebBrowser1.Navigate("http://buxp.org/login.php") End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click WebBrowser1.Document.GetElementById("username").SetAttribute("value", TextBox1.Text) WebBrowser1.Document.GetElementById("password").SetAttribute("value", TextBox2.Text) WebBrowser1.Document.GetElementById("loginsubmit").InvokeMember("click") End Sub Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted Dim doc As IHTMLDocument2 = WebBrowser1.Document.DomDocument Dim imgRange As IHTMLControlRange = CType(doc.body, HTMLBody).createControlRange For Each img As IHTMLImgElement In doc.images If img.GetAttribute("src").ToString.Contains("image.php") Then imgRange.add(img) imgRange.execCommand("Copy", False, Nothing) PictureBox1.Image = Clipboard.GetDataObject.GetData(DataFormats.Bitmap) Exit For End If Next End Sub End Class
and my question, what the code for write the image values to the textbox??
thanks b4




Reply With Quote
