473,548 Members | 2,622 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hooking up InternetExplore r to a WebBrowser control

Hi, all.

How can i hook up an InternetExplore r object to a WebBrowser
control that I have in my windows form. Basically what I want to do is
automate the WebBrowser control via the InternetExplore r object
(instead of loading iexplorer.exe externally...).
Thanks,

Mar 12 '07 #1
8 3750
VJ
WebBroswer Control is the IE control... you don't need the IE object, what
is your exact intent.

"Ludwig Wittgenstein" <se********@hot mail.comwrote in message
news:11******** **************@ s48g2000cws.goo glegroups.com.. .
Hi, all.

How can i hook up an InternetExplore r object to a WebBrowser
control that I have in my windows form. Basically what I want to do is
automate the WebBrowser control via the InternetExplore r object
(instead of loading iexplorer.exe externally...).
Thanks,

Mar 12 '07 #2
I want to have an embedded browser in my winform app that I can run
automated tasks against. For example, I want to load a web page
through the embedded browser and be able to located html tags (by ID
or name) and be able to click them (programmatical ly). Can you do that
using the WebBrowser control?
I know you can using SHDocVw.Interne tExplorer.

Thanks,

On Mar 12, 12:14 pm, "VJ" <nonewsaddr...@ yahoo.comwrote:
WebBroswer Control is the IE control... you don't need the IE object, what
is your exact intent.

"Ludwig Wittgenstein" <sender_...@hot mail.comwrote in message

news:11******** **************@ s48g2000cws.goo glegroups.com.. .
Hi, all.
How can i hook up an InternetExplore r object to a WebBrowser
control that I have in my windows form. Basically what I want to do is
automate the WebBrowser control via the InternetExplore r object
(instead of loading iexplorer.exe externally...).
Thanks,

Mar 12 '07 #3
I want to have an embedded browser in my winform app that I can run
automated tasks against. For example, I want to load a web page
through the embedded browser and be able to located html tags (by ID
or name) and be able to click them (programmatical ly). Can you do that
using the WebBrowser control?
I know you can using SHDocVw.Interne tExplorer.

Thanks,
On Mar 12, 12:14 pm, "VJ" <nonewsaddr...@ yahoo.comwrote:
WebBroswer Control is the IE control... you don't need the IE object, what
is your exact intent.

"Ludwig Wittgenstein" <sender_...@hot mail.comwrote in message

news:11******** **************@ s48g2000cws.goo glegroups.com.. .
Hi, all.
How can i hook up an InternetExplore r object to a WebBrowser
control that I have in my windows form. Basically what I want to do is
automate the WebBrowser control via the InternetExplore r object
(instead of loading iexplorer.exe externally...).
Thanks,

Mar 12 '07 #4
VJ
Ok Yes I have done that previously with ShDocVw with that object. Really not
sure If you can do that, try and see if www.codeporject.com has any samples.

VJ

"Ludwig Wittgenstein" <se********@hot mail.comwrote in message
news:11******** **************@ v33g2000cwv.goo glegroups.com.. .
>I want to have an embedded browser in my winform app that I can run
automated tasks against. For example, I want to load a web page
through the embedded browser and be able to located html tags (by ID
or name) and be able to click them (programmatical ly). Can you do that
using the WebBrowser control?
I know you can using SHDocVw.Interne tExplorer.

Thanks,

On Mar 12, 12:14 pm, "VJ" <nonewsaddr...@ yahoo.comwrote:
>WebBroswer Control is the IE control... you don't need the IE object,
what
is your exact intent.

"Ludwig Wittgenstein" <sender_...@hot mail.comwrote in message

news:11******* *************** @s48g2000cws.go oglegroups.com. ..
Hi, all.
How can i hook up an InternetExplore r object to a WebBrowser
control that I have in my windows form. Basically what I want to do is
automate the WebBrowser control via the InternetExplore r object
(instead of loading iexplorer.exe externally...).
Thanks,


Mar 12 '07 #5
The WebBrowser control is already a wrapper of SHDocVw.Interne tExplorer. To
access SHDocVw.Interne tExplorer, look at the "WebBrowser.Act iveXControl"
property.

Jon
"Ludwig Wittgenstein" <se********@hot mail.comwrote in message
news:11******** **************@ s48g2000cws.goo glegroups.com.. .
Hi, all.

How can i hook up an InternetExplore r object to a WebBrowser
control that I have in my windows form. Basically what I want to do is
automate the WebBrowser control via the InternetExplore r object
(instead of loading iexplorer.exe externally...).
Thanks,

Mar 12 '07 #6

"Ludwig Wittgenstein" <se********@hot mail.comwrote in message
news:11******** **************@ v33g2000cwv.goo glegroups.com.. .
>I want to have an embedded browser in my winform app that I can run
automated tasks against. For example, I want to load a web page
through the embedded browser and be able to located html tags (by ID
or name) and be able to click them (programmatical ly). Can you do that
using the WebBrowser control?
Yes, look at WebBrowser.Docu ment.

Jon
Mar 12 '07 #7
Hi, Jon.

Thanks for your reply, I was unable to find any automation methods
for WebBrowser, all I found was grabbing information from the
browser's current document (html), but nothing about automating
clicking something in the document to go to another. Can you please
point me to the actual class methods that can do this.
Thanks a lot!

On Mar 12, 3:27 pm, "Jon Davis" <j...@REMOVE.ME .PLEASE.jondavi s.net>
wrote:
"Ludwig Wittgenstein" <sender_...@hot mail.comwrote in message

news:11******** **************@ v33g2000cwv.goo glegroups.com.. .
I want to have an embedded browser in my winform app that I can run
automated tasks against. For example, I want to load a web page
through the embedded browser and be able to located html tags (by ID
or name) and be able to click them (programmatical ly). Can you do that
using the WebBrowser control?

Yes, look at WebBrowser.Docu ment.

Jon

Mar 19 '07 #8
For said automation, you can either introspect the href attribute of an <a>
tag and use the Navigate() method, or in the case of forms you can execute
the submit() method on the form object by calling the InvokeMember("s ubmit")
method on the DOM element.

Jon
"Ludwig Wittgenstein" <se********@hot mail.comwrote in message
news:11******** *************@l 77g2000hsb.goog legroups.com...
Hi, Jon.

Thanks for your reply, I was unable to find any automation methods
for WebBrowser, all I found was grabbing information from the
browser's current document (html), but nothing about automating
clicking something in the document to go to another. Can you please
point me to the actual class methods that can do this.
Thanks a lot!

On Mar 12, 3:27 pm, "Jon Davis" <j...@REMOVE.ME .PLEASE.jondavi s.net>
wrote:
>"Ludwig Wittgenstein" <sender_...@hot mail.comwrote in message

news:11******* *************** @v33g2000cwv.go oglegroups.com. ..
>I want to have an embedded browser in my winform app that I can run
automated tasks against. For example, I want to load a web page
through the embedded browser and be able to located html tags (by ID
or name) and be able to click them (programmatical ly). Can you do that
using the WebBrowser control?

Yes, look at WebBrowser.Docu ment.

Jon

Mar 19 '07 #9

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

Similar topics

10
3902
by: Hautzendorfer | last post by:
Hello, I'm currently working on some printing stuff: I have to print out several .xml files using a stylesheet. Therefor I choose the Internetexplorer PlugIn via SHDocVW. My problem: After sending the print command via ExecWB for the first .xml document either the preview or the printer selection window occurs (depending on the passed...
3
4473
by: Rick Strahl [MVP] | last post by:
I'm working on an app that's using the WebBrowser control. I got the control working fine, hooking to the document object. But I've run into a major issue with hooking the Document events. Whenever I hook any of the HTMLDocumnetEvent2_Event events like this: HTMLDocumentEvents2_Event DocEvents = this.Browser.Document as...
4
3283
by: Lars-Erik Aabech | last post by:
Hi! I've been walking in extacy since reading the article about test automation with IE in the latest MSDN mag. (http://msdn.microsoft.com/msdnmag/issues/05/10/TestRun/default.aspx) After a while, I had to find an issue I couldn't solve. (Of course) If an ASP.NET page uses the smartnav option, the document you get from IE only contains...
0
3447
by: Jim Hubbard | last post by:
How would I implement the IDispatch interface to handle the following in VB.Net <BEGIN> Controlling Download and Execution The WebBrowser Control gives you control over what it downloads, displays, and executes. To gain this control, you need to implement your host's IDispatch so it handles DISPID_AMBIENT_DLCONTROL. When the WebBrowser...
3
1464
by: Jim | last post by:
I'd like to hook events (like when a user clicks or right-clicks on a link in a web page) to launch a download manager or to open a new window for the link, but I am finding it difficult to find sources on how this can be done using VB.Net. Have you seen any examples such as this? I am using VB.Net 2005 Professional, but any .Net examples...
12
6339
by: Alex Clark | last post by:
Greetings, (.NET 2.0, WinXP Pro/Server 2003, IE6 with latest service packs). I've decided to take advantage of the layout characteristics of HTML documents to simplify my printing tasks, but of course it's thrown up a whole host of new issues... I'm generating a multi page printable document in HTML from my app, and displaying it in a...
8
3391
by: Prosperz | last post by:
Hi, I would like to make thumbnails of web page by capture content of a WebBrowser. By example, capture http://www.google.com. I used WebBrowser control with Framework 2.0. I try this : *************************************************
4
3397
by: Dick Sutton | last post by:
I am so close, yet oh so far! Here's the problem: I want to load a string variable that contains HTML into an instance of SHDocVw.InternetExplorer. Here's what I have so far: Function ShowMonTaxes(ByVal bTax As Boolean) As Integer Dim oIE As New SHDocVw.InternetExplorer ' set Internet Explorer properties... oIE.Left = 225 oIE.Top = 75
6
2738
by: gcmartijn | last post by:
H! I using a script that opens a internet page in a small window (what I can control) In XP everything was working fine, but now I'm using Vista with IE7 and this is what happends now: First a small window opens at the postion x0 y0 (like I want) but then IE thinks "Hey lets open a other main window too". And that window opens the url...
0
7438
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...
0
7707
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. ...
0
7951
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...
1
7466
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...
0
7803
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...
1
5362
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5082
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...
0
3495
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...
1
1926
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.