Hi!
I am new to VB.net and I am using the Visual Basic 2005 Express
Edition
I have two questions:
1. I am trying to write an application that will automate Internet
Explorer and store data in a database. Am I better off learning VB.net
or C#.net? Is there a free development environment for C# as well?
2. I have followed examples in other posts and copied this code to
open up IE:
Imports SHDocVw
Public Class Form1
Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
Dim wbBrowser As New SHDocVw.Interne tExplorer
wbBrowser.Visib le = True
wbBrowser.Navig ate("http://www.rediff.com" , Nothing, Nothing,
Nothing, Nothing)
End Sub
End Class
These are my errors:
Warning 1 Namespace or type specified in the Imports 'SHDocVw' doesn't
contain any public member or cannot be found. Make sure the namespace
or the type is defined and contains at least one public member. Make
sure the imported element name doesn't use any aliases. C:\Documents
and Settings\Admini strator\Local Settings\Applic ation Data\Temporary
Projects\Window sApplication3\F orm1.vb 1 9 WindowsApplicat ion3
Error 2 Type 'SHDocVw.Intern etExplorer' is not defined. C:\Documents
and Settings\Admini strator\Local Settings\Applic ation Data\Temporary
Projects\Window sApplication3\F orm1.vb 5 30 WindowsApplicat ion3
Can someone please help this newbe?
I am new to VB.net and I am using the Visual Basic 2005 Express
Edition
I have two questions:
1. I am trying to write an application that will automate Internet
Explorer and store data in a database. Am I better off learning VB.net
or C#.net? Is there a free development environment for C# as well?
2. I have followed examples in other posts and copied this code to
open up IE:
Imports SHDocVw
Public Class Form1
Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
Dim wbBrowser As New SHDocVw.Interne tExplorer
wbBrowser.Visib le = True
wbBrowser.Navig ate("http://www.rediff.com" , Nothing, Nothing,
Nothing, Nothing)
End Sub
End Class
These are my errors:
Warning 1 Namespace or type specified in the Imports 'SHDocVw' doesn't
contain any public member or cannot be found. Make sure the namespace
or the type is defined and contains at least one public member. Make
sure the imported element name doesn't use any aliases. C:\Documents
and Settings\Admini strator\Local Settings\Applic ation Data\Temporary
Projects\Window sApplication3\F orm1.vb 1 9 WindowsApplicat ion3
Error 2 Type 'SHDocVw.Intern etExplorer' is not defined. C:\Documents
and Settings\Admini strator\Local Settings\Applic ation Data\Temporary
Projects\Window sApplication3\F orm1.vb 5 30 WindowsApplicat ion3
Can someone please help this newbe?
Comment