473,748 Members | 2,516 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

internet explorer

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?

Apr 14 '07 #1
9 7728
Hello Etayki,
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?
That depends on you. If you are very familiar with C/C++, then you might
be more interested in C#. If you have ties to BASIC, then VB.NET might
be more interesting for you.
Is there a free development environment for C# as well?
Yes, there is. You can download it from the MS website at

<http://msdn.microsoft. com/vstudio/express/visualcsharp/default.aspx>

Best regards,

Martin
Apr 14 '07 #2
On Apr 14, 4:44 am, "Etayki" <etay...@gmail. comwrote:
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?
Do you want to start Internet Explorer or just the user's default web
browser? If you want to start the default browser, use this code
(pulled from MSDN):

Dim myTargetURL As String = "http://www.google.com"
System.Diagnost ics.Process.Sta rt(myTargetURL)

If you want to start IE specifically, then do something like this:

Dim myTargetURL As String = "http://www.google.com"
System.Diagnost ics.Process.Sta rt("IExplore.ex e", myTargetURL)

Hope that helps,

Chuck
Apr 14 '07 #3

"camainc" <ca*****@gmail. comwrote in message
news:11******** **************@ d57g2000hsg.goo glegroups.com.. .
On Apr 14, 4:44 am, "Etayki" <etay...@gmail. comwrote:
>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.EventAr gs) 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\Windo wsApplication3\ Form1.vb 1 9
WindowsApplica tion3

Error 2 Type 'SHDocVw.Intern etExplorer' is not defined.
C:\Documents
and Settings\Admini strator\Local Settings\Applic ation Data\Temporary
Projects\Windo wsApplication3\ Form1.vb 5 30
WindowsApplica tion3

Can someone please help this newbe?

Do you want to start Internet Explorer or just the user's default web
browser? If you want to start the default browser, use this code
(pulled from MSDN):

Dim myTargetURL As String = "http://www.google.com"
System.Diagnost ics.Process.Sta rt(myTargetURL)

If you want to start IE specifically, then do something like this:

Dim myTargetURL As String = "http://www.google.com"
System.Diagnost ics.Process.Sta rt("IExplore.ex e", myTargetURL)

Hope that helps,

Chuck

If you want to host a browser in your app you can use the WebBrowser
control. It is easy to create buttons to simulate the forward / back
buttons and a textbox for the URL. There are events from this control which
you can capture to update those controls. For example the DocumentComplet ed
event will present you with the URL of the last page transmitted.

There are a set of methods available such as Navigate to start browsing to
the string (URL) provided. And other command such as GoHome if you wanted to
provide a button control to do that. I have a full clone of IE with my
extensions working with just a small amount of code.

Good luck and if you have questions I can answer them.

Lloyd Sheen

Apr 14 '07 #4
Etayki,

You need to set a reference to Internet explorer and than an import. It is
always hard to find but it is in the Com tab.

Project -Add Reference -Com (I thought just Internet Explorere) but
search yourself it can be a hell of a job by instance because Microsoft uses
irregular the internal and the external names.

There is almost not any difference between using in this VB.Net or C#.

As I saw in your code don't you need in VB.Net that nothing, nothing,
nothing, what can by anoying in C#.
"Etayki" <et*****@gmail. comschreef in bericht
news:11******** *************@n 76g2000hsh.goog legroups.com...
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?

Apr 16 '07 #5

"Cor Ligthert [MVP]" <no************ @planet.nlwrote in message
news:uq******** ******@TK2MSFTN GP04.phx.gbl...
Etayki,

You need to set a reference to Internet explorer and than an import. It is
always hard to find but it is in the Com tab.

Project -Add Reference -Com (I thought just Internet Explorere) but
search yourself it can be a hell of a job by instance because Microsoft
uses irregular the internal and the external names.

There is almost not any difference between using in this VB.Net or C#.

As I saw in your code don't you need in VB.Net that nothing, nothing,
nothing, what can by anoying in C#.
"Etayki" <et*****@gmail. comschreef in bericht
news:11******** *************@n 76g2000hsh.goog legroups.com...
>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.EventAr gs) 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\Windo wsApplication3\ Form1.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\Windo wsApplication3\ Form1.vb 5 30 WindowsApplicat ion3

Can someone please help this newbe?

As I pointed out earlier since you are using VB 2005 just use the MS
provided WebBroswer control. No need for COM.

Lloyd Sheen

Apr 16 '07 #6
Lloyd,

In my idea is (seeing the code) direct Internet Explorer used
(SHDocVW.Intern etExplorer), not the interop AX Com version.

Can you tell me how you can do that with the 2.0 webbrowser?

Cor

"Lloyd Sheen" <a@b.cschreef in bericht
news:EF******** *************** ***********@mic rosoft.com...
>
"Cor Ligthert [MVP]" <no************ @planet.nlwrote in message
news:uq******** ******@TK2MSFTN GP04.phx.gbl...
>Etayki,

You need to set a reference to Internet explorer and than an import. It
is always hard to find but it is in the Com tab.

Project -Add Reference -Com (I thought just Internet Explorere) but
search yourself it can be a hell of a job by instance because Microsoft
uses irregular the internal and the external names.

There is almost not any difference between using in this VB.Net or C#.

As I saw in your code don't you need in VB.Net that nothing, nothing,
nothing, what can by anoying in C#.
"Etayki" <et*****@gmail. comschreef in bericht
news:11******* **************@ n76g2000hsh.goo glegroups.com.. .
>>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.EventA rgs) 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\Wind owsApplication3 \Form1.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\Wind owsApplication3 \Form1.vb 5 30 WindowsApplicat ion3

Can someone please help this newbe?


As I pointed out earlier since you are using VB 2005 just use the MS
provided WebBroswer control. No need for COM.

Lloyd Sheen

Apr 17 '07 #7

"Cor Ligthert [MVP]" <no************ @planet.nlwrote in message
news:uw******** ******@TK2MSFTN GP06.phx.gbl...
Lloyd,

In my idea is (seeing the code) direct Internet Explorer used
(SHDocVW.Intern etExplorer), not the interop AX Com version.

Can you tell me how you can do that with the 2.0 webbrowser?

Cor

"Lloyd Sheen" <a@b.cschreef in bericht
news:EF******** *************** ***********@mic rosoft.com...
>>
"Cor Ligthert [MVP]" <no************ @planet.nlwrote in message
news:uq******* *******@TK2MSFT NGP04.phx.gbl.. .
>>Etayki,

You need to set a reference to Internet explorer and than an import. It
is always hard to find but it is in the Com tab.

Project -Add Reference -Com (I thought just Internet Explorere) but
search yourself it can be a hell of a job by instance because Microsoft
uses irregular the internal and the external names.

There is almost not any difference between using in this VB.Net or C#.

As I saw in your code don't you need in VB.Net that nothing, nothing,
nothing, what can by anoying in C#.
"Etayki" <et*****@gmail. comschreef in bericht
news:11****** *************** @n76g2000hsh.go oglegroups.com. ..
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.Event Args) 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\Win dowsApplication 3\Form1.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\Win dowsApplication 3\Form1.vb 5 30 WindowsApplicat ion3

Can someone please help this newbe?

As I pointed out earlier since you are using VB 2005 just use the MS
provided WebBroswer control. No need for COM.

Lloyd Sheen

Cor,

In VS 2005 there is a WebBroswer control. It does all that the old interop
would do. I think the poster copied code from somewhere and then added that
to his source. If he had added a reference to the dll holding the WebBrower
(don't know the name right now) it would add the interop to his project. In
VS 2002/3 this is what you did (and in VB6 as well).

All you need to do is add the WebBroswer from the toolbox and all the
events, properties and methods are available. As I said you can recreate IE
in about 10 minutes.

Lloyd Sheen

Apr 17 '07 #8
Lloyd,

I have made about a year ago an article about what you write in the Dutch
dotNet newsgroup, how to make your own tabbed webbrowser and as well how to
build an editer with the webbrowser control.

However there is a use that always everybode who has used this becomes
confused of a guy in this newsgroup had spent almost 50 messages replying
before after seeing my reply he understood it.

You can with the webbrowser COM part build your own webbrowswer, the thing
has the name AXSHVDOCvw, however there is as well
SHVDOCVW,Intere netExplorer. That opens internet explorer for you and you can
use that then.

http://www.vb-tips.com/dbpages.aspx?...d-da738cdc7c2c

Cor

"Lloyd Sheen" <a@b.cschreef in bericht
news:22******** *************** ***********@mic rosoft.com...
>
"Cor Ligthert [MVP]" <no************ @planet.nlwrote in message
news:uw******** ******@TK2MSFTN GP06.phx.gbl...
>Lloyd,

In my idea is (seeing the code) direct Internet Explorer used
(SHDocVW.Inter netExplorer), not the interop AX Com version.

Can you tell me how you can do that with the 2.0 webbrowser?

Cor

"Lloyd Sheen" <a@b.cschreef in bericht
news:EF******* *************** ************@mi crosoft.com...
>>>
"Cor Ligthert [MVP]" <no************ @planet.nlwrote in message
news:uq****** ********@TK2MSF TNGP04.phx.gbl. ..
Etayki,

You need to set a reference to Internet explorer and than an import. It
is always hard to find but it is in the Com tab.

Project -Add Reference -Com (I thought just Internet Explorere) but
search yourself it can be a hell of a job by instance because Microsoft
uses irregular the internal and the external names.

There is almost not any difference between using in this VB.Net or C#.

As I saw in your code don't you need in VB.Net that nothing, nothing,
nothing, what can by anoying in C#.
"Etayki" <et*****@gmail. comschreef in bericht
news:11***** *************** *@n76g2000hsh.g ooglegroups.com ...
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.Even tArgs) 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\Wi ndowsApplicatio n3\Form1.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\Wi ndowsApplicatio n3\Form1.vb 5 30 WindowsApplicat ion3
>
Can someone please help this newbe?
>

As I pointed out earlier since you are using VB 2005 just use the MS
provided WebBroswer control. No need for COM.

Lloyd Sheen

Cor,

In VS 2005 there is a WebBroswer control. It does all that the old
interop would do. I think the poster copied code from somewhere and then
added that to his source. If he had added a reference to the dll holding
the WebBrower (don't know the name right now) it would add the interop to
his project. In VS 2002/3 this is what you did (and in VB6 as well).

All you need to do is add the WebBroswer from the toolbox and all the
events, properties and methods are available. As I said you can recreate
IE in about 10 minutes.

Lloyd Sheen

Apr 18 '07 #9
On Apr 18, 7:10 pm, "Cor Ligthert [MVP]" <notmyfirstn... @planet.nl>
wrote:
Lloyd,

I have made about a year ago an article about what you write in the Dutch
dotNet newsgroup, how to make your own tabbed webbrowser and as well how to
build an editer with the webbrowser control.

However there is a use that always everybode who has used this becomes
confused of a guy in this newsgroup had spent almost 50 messages replying
before after seeing my reply he understood it.

You can with the webbrowser COM part build your own webbrowswer, the thing
has the name AXSHVDOCvw, however there is as well
SHVDOCVW,Intere netExplorer. That opens internet explorer for you and you can
use that then.

http://www.vb-tips.com/dbpages.aspx?...6d-a7bd-da738c...

Cor

"Lloyd Sheen" <a...@b.cschree f in berichtnews:22* *************** *************** ***@microsoft.c om...
"Cor Ligthert [MVP]" <notmyfirstn... @planet.nlwrote in message
news:uw******** ******@TK2MSFTN GP06.phx.gbl...
Lloyd,
In my idea is (seeing the code) direct Internet Explorer used
(SHDocVW.Intern etExplorer), not the interop AX Com version.
Can you tell me how you can do that with the 2.0 webbrowser?
Cor
"Lloyd Sheen" <a...@b.cschree f in bericht
news:EF******* *************** ************@mi crosoft.com...
>"Cor Ligthert [MVP]" <notmyfirstn... @planet.nlwrote in message
news:uq****** ********@TK2MSF TNGP04.phx.gbl. ..
Etayki,
>>You need to set a reference to Internet explorer and than an import.It
is always hard to find but it is in the Com tab.
>>Project -Add Reference -Com (I thought just Internet Explorere) but
search yourself it can be a hell of a job by instance because Microsoft
uses irregular the internal and the external names.
>>There is almost not any difference between using in this VB.Net or C#.
>>As I saw in your code don't you need in VB.Net that nothing, nothing,
nothing, what can by anoying in C#.
>>"Etayki" <etay...@gmail. comschreef in bericht
news:11***** *************** *@n76g2000hsh.g ooglegroups.com ...
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.Event Args) 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\Win dowsApplication 3\Form1.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\Win dowsApplication 3\Form1.vb 5 30 WindowsApplicat ion3
>>>Can someone please help this newbe?
>As I pointed out earlier since you are using VB 2005 just use the MS
provided WebBroswer control. No need for COM.
>Lloyd Sheen
Cor,
In VS 2005 there is a WebBroswer control. It does all that the old
interop would do. I think the poster copied code from somewhere and then
added that to his source. If he had added a reference to the dll holding
the WebBrower (don't know the name right now) it would add the interop to
his project. In VS 2002/3 this is what you did (and in VB6 as well).
All you need to do is add the WebBroswer from the toolbox and all the
events, properties and methods are available. As I said you can recreate
IE in about 10 minutes.
Lloyd Sheen
Thanks for all the help guys.
Here is the final code:

Imports MSHTML, SHDocVw

Dim HTMLDoc As MSHTML.HTMLDocu ment
Dim wbBrowser As New SHDocVw.Interne tExplorer
Dim iHTMLCol As MSHTML.IHTMLEle mentCollection
Dim iHTMLEle As MSHTML.IHTMLEle ment
Dim Str As String

wbBrowser.Visib le = True
wbBrowser.Navig ate("http://search.msn.com/results.aspx?q= etay+
%7Bpopl%3D0%7D+ %7Bmtch%3D100%7 D+language%3Ahe +site
%3Aco.il&form=Q BRE&go.x=17&go. y=10", Nothing, Nothing, Nothing,
Nothing)
Do
Loop Until Not wbBrowser.Busy

HTMLDoc = wbBrowser.Docum ent
iHTMLCol = HTMLDoc.getElem entsByTagName(" input")
For Each iHTMLEle In iHTMLCol
If Not iHTMLEle.getAtt ribute("name") Is Nothing Then
Str = iHTMLEle.getAtt ribute("name"). ToString
If Str = "q" Then
iHTMLEle.setAtt ribute("value", "איתי" + " {popl=0}
{mtch=100} language:he site:co.il")
Exit For
End If
End If
Next
Do
Loop Until Not wbBrowser.Busy

For Each iHTMLEle In iHTMLCol
If Not iHTMLEle.getAtt ribute("name") Is Nothing Then
Str = iHTMLEle.getAtt ribute("name"). ToString
If Str = "go" Then
iHTMLEle.click( )
Exit For
End If
End If
Next
Do
Loop Until Not wbBrowser.Busy

Apr 19 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2677
by: Raymond H. | last post by:
Hello, I create a vb4 project which can also naviger on Internet via the WebBrowser control which I put on my form. My question is: if this program is installed on a station having already Internet Explorer in it then will it cause an error if version Internet Explorer is the same one as WebBrowser which is in my project? Is it this control which Internet Explorer uses? If that can cause errors of version then, instead, can I install this...
12
19612
by: SunshineGirl | last post by:
I'm trying to receive events from a running instance of Internet Explorer. So far I've only been able to receive events from an instance I launch from code, but I need to receive events from all running instances of Internet Explorer (I mean those that the user launches himself). I know this is possible because I did it three months ago. Unfortunately, I can't find the code. I've already looked at all the Microsoft articles on automating...
0
1246
by: asadhussain | last post by:
I wrote a plugin to internet explorer that requires internet explorer to be shutdown and restarted. I figured out a way to shut down IE using the MSI and to start it back up using VBScript. I was wondering if there was a way to remember what webpage each internet explorer process was on and then open up internet explorer windows that open up to the URLs that the user was visiting previously. Any insights?
2
2879
by: Morten Wennevik | last post by:
I use System.Diagnostics.Process.Start("IExplore", url); to start Internet Explorer when clicking a link label. However, this seems to work only for me, and not for two other people who both get File not found errors. Both have installed Internet Explorer. How can I find out the directory of Internet Explorer so I can pass the full filepath in the Start method?
2
2294
by: CathieC | last post by:
I have a websote developed using visual studio 2005 beta , .net version 2 i deploy my application to a server and it is run from client computers. One of the users gets the error "Internet Explorer cannot open the internet site "XXXXX" Operation aborted" this happens when they click on a menu item to open a page. they do not get
3
2349
by: VK | last post by:
Internet Explorer 7 beta 2 preview CNET Editor review: <http://reviews.cnet.com/Internet_Explorer_7_for_XP_SP2_Beta_2/4505-3514_7-31454661-2.html?tag=nl.e415> Summary (my personal review interpretation): "Half stolen from Firefox, half is buggy - including the stolen part". Download: <http://www.download.com/Internet-Explorer-7/3000-2356_4-10497433.html?tag=nl.e415>
11
11622
by: Wendy | last post by:
Hello, I have a program that does the following: When a user clicks on a row in a VB.NET datagrid, it will open a web page in Internet Explorer (that corresponds to that item in the selected row in the datagrid). It will automatically print that web page, and then it will close the Internet Explorer window. I have code that works perfectly when a regular web page is opened, however when a pdf web page is opened the printing never...
3
11498
by: laredotornado | last post by:
Hi, This problem only affects PC IE. On a secured page (a page visited via https), there is a link that reads -- "Download HTML File". The link connects to this page <?php require("../../util_fns.php"); session_start();
1
2458
by: -Lost | last post by:
This is more of a post to inform, unless of course I am missing something fundamental, in which case I would appreciate anyone explaining it. Based on Mr. Michaux's camelizeStyle function I wrote: function create_style(style) { var p = document.createElement('p'); var t = document.createTextNode('Just something to fill the P.');
0
8994
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8831
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9555
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9329
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9250
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8247
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.