E
Etayki
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(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim wbBrowser As New SHDocVw.InternetExplorer
wbBrowser.Visible = True
wbBrowser.Navigate("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\Administrator\Local Settings\Application Data\Temporary
Projects\WindowsApplication3\Form1.vb 1 9 WindowsApplication3
Error 2 Type 'SHDocVw.InternetExplorer' is not defined. C:\Documents
and Settings\Administrator\Local Settings\Application Data\Temporary
Projects\WindowsApplication3\Form1.vb 5 30 WindowsApplication3
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(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim wbBrowser As New SHDocVw.InternetExplorer
wbBrowser.Visible = True
wbBrowser.Navigate("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\Administrator\Local Settings\Application Data\Temporary
Projects\WindowsApplication3\Form1.vb 1 9 WindowsApplication3
Error 2 Type 'SHDocVw.InternetExplorer' is not defined. C:\Documents
and Settings\Administrator\Local Settings\Application Data\Temporary
Projects\WindowsApplication3\Form1.vb 5 30 WindowsApplication3
Can someone please help this newbe?