I get the following error message when I run the code I have included below "Error HRESULT E_FAIL has been returned from a call to a COM"
{"Error HRESULT E_FAIL has been returned from a call to a COM component."}
{Name = "IWebBrowser2" FullName = "SHDocVw.IWebBrowser2"}
CODE:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim web As SHDocVw.InternetExplorer
web = CreateObject("InternetExplorer.Application")
With web
.Visible = True
.Navigate("http://mfrepor." ".org/badd/Default.asp")
.Document.all("Jobname").value = TextBox1.Text
End With
End Sub
End Class
{"Error HRESULT E_FAIL has been returned from a call to a COM component."}
{Name = "IWebBrowser2" FullName = "SHDocVw.IWebBrowser2"}
CODE:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim web As SHDocVw.InternetExplorer
web = CreateObject("InternetExplorer.Application")
With web
.Visible = True
.Navigate("http://mfrepor." ".org/badd/Default.asp")
.Document.all("Jobname").value = TextBox1.Text
End With
End Sub
End Class