I need the on in vb.net
Code:Dim hDoc As MSHTML.HTMLDocument Dim hInp As MSHTML.HTMLInputElement Private Sub Command1_Click() Set hInp = hDoc.getElementById("upc") hInp.focus hInp.Value = "07800008846" SendKeys "{ENTER}", True End Sub Private Sub Form_Load() WebBrowser1.Navigate2 "http://www.upcdatabase.com/nocheckdigit.pl" End Sub Private Sub Form_Resize() If Me.WindowState <> vbMinimized Then WebBrowser1.Move 0, 0, Me.ScaleWidth, Me.ScaleHeight - 450 'Make adjustment for command button End If End Sub Private Sub WebBrowser1_NavigateComplete2(ByVal pDisp As Object, URL As Variant) Set hDoc = WebBrowser1.Document End Sub




Reply With Quote