Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27189

VS 2010 Visual Basic 2010 Error (Visual Studio 2010)

$
0
0
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

Viewing all articles
Browse latest Browse all 27189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>