webbrowser-control

IE 7 embedded in winform app is freezing the entire winform app

Hi guys, We stumbled on the usual friday afternoon bug... We have a .net 2.0 winform app that uses the WebBrowser control (deployed on xp tablet edition, with latest IE 7). At some point in a page, we are hidding a div and setting a textbox value using some javascript. At that point, the operation is working (text appears in the tex...

Disable Javascript popups when using Windows.Forms.Webbrowser.Navigate()

Ok, I have a very frustrating problem. I am parsing a webpage and need to have it execute the javascript in order to get the information I want. Form f = new Form(); WebBrowser w = new WebBrowser(); w.Navigate(url); f.Controls.Add(w); f.ShowDialog(); HtmlElementCollection hc = w.Document.GetElementsByTagName("button"); This works and...

Replacing .NET WebBrowser control with a better browser, like Chrome?

Is there any relatively easy way to insert a modern browser into a .NET application? As far as I understand, the WebBrowser control is a wrapper for IE, which wouldn't be a problem except that it looks like it is a very old version of IE, with all that entails in terms of CSS screw-ups, potential security risks (if the rendering engine...

How to Set the URL property of a Web Browser control to a String

I'm using a Web Browser control in C# and I'd like to be able to plug in different URLs depending on other things that have happened in the program. How can I set the URL property to a string in the code? Can I convert a string to the System.Uri type? string link; string searchedtitle = "The+Italian+Job"; link = "http://www.imdb.com/fin...

IE WebBrowser control: Prevent URLs going into the IE address bar URL history

I have a Windows app that embeds the IE WebBrowser control, and runs a local webserver to serve content it. The URLs I load in are only meaningful within the application, and not valid after the application exits. They're never visible to the user. They look like this: http://127.0.0.1:1234/something.html where 1234 is a random por...

What's new in IE8 regarding to WebBrowser Control?

What's new in IE8 regarding to WebBrowser Control via interfaces or direct API calls? Is there any new extensibility feature or a new API? ...

Reentrancy was detected

I'm getting "Reentrancy was detected" MDA error while setting a webbrowser control's properties. This only happens if I call "SetWindowsHookEx" to hook some dials within the same thread. Normally this hooking code works fine but it doesn't play nice with Webbrowser Control. When I ignore the exception code works fine, at least look like...

how to disable images in webbrowser control

in vb.net 2003 , how to disable images loading in webbrowser control ...

Display offscreen Google Earth on a panel?

Is it possible to capture the graphics object created by the Google Earth browser plugin from a .NET WebBrowser control? With this graphics object I could create an image to use as the background image for a panel that I can then draw on top of. You cannot just use a WebBrowser control under a Panel control as the Google Earth plugin d...

How to store captured DOM events in C#

DOM events in WebBrower control (local instance of IE) can be captured by HtmlElementEventHandler, that are attached to HTML DOM Document Object after DocumentCompleted event is fired. How to store event that was fired, so that it could be invoked with InvokeMember() at later time. I am assuming that unique or pseudo unique tags and me...

webbrowser not loading document

I'm trying to load an html document into a WebBrowser control, but I'm at my wits end. Here's a sample: public void Button_Click(object sender, EventArgs e) { webBrowser1.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(wb_c); webBrowser1.DocumentText = "<html>foo</html>"; // The documenttext property is N...

Problem with flash in a webbrowser in a winform

I have the oddest problem (but aren't all programming problems odd?). I have a winform that contains a webbrowser object that opens a website that has flash on it. This winform is running on a touchscreen computer (I can't find the brand or model number). Here is what I know: flash objects embeded in a website that is accessed via t...

Using the MSHTML interfaces IHTMLChangeSink, IHTMLChangeLog and RegisterForDirtyRange in VB6

Is this even possible? I can implement IHTMLChangeSink, but not IHTMLChangeLog, but I cannot call RegisterForDirtyRange or CreateChangeLog in VB6. ...

How do I detect changes to the document in a WebBrowser control in Edit mode, using VB6 ?

We are building a HTML edit control using a VB6 wrapper around the WebBrowser control and MSHTM documents. We are having problems detecting if the document has been modified by the user. VB6 does not support using the IHTMLChangeSing and IHTMLChangeLog interfaces so these seem to be non-starters. What other events from either the WebB...

C# WebBrowser.Navigate Issue

Hello, I have an XML file stored in the DEBUG folder inside the BIN Folder of my Application (BIN\DEBUG\File.xml) When i call WebBrowser1.Navigate("File.xml"); It doesn't update the view with the display of the file. I know it's something to do with it not locating the file due to the folder location being incorrect. The file has to b...

How to use webbrowser control DocumentCompleted event in C# ?

Before starting writing this question, i was trying to solve following // 1. navigate to page // 2. wait until page is downloaded // 3. read and write some data from/to iframe // 4. submit (post) form The problem was, that if a iframe exists on a web page, DocumentCompleted event would get fired more then once (after each document ha...

WebBrowser Event Properties?

Can I figure out if a function has already been assigned to an event? e.g. (Standard winforms app with web browser control) namespace Crawler { public partial class Form1 : Form { WebCrawler.manager m; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, E...

ShowPageSetupDialog Method

Is there any way to disable some of the functions on the ShowPageSetupDialog box that displays when the method is called? I only want the user to be able to choose portrait or landscape and customize the margins. The other functions should be disabled if possible. Thanks. ...

MSHTML IWebBrowser2 problem - Sinking page events causes missed keystrokes??

Hi all, I've got a bit of a problem with my application using MSHTML. I have everything working except for the odd keystroke missing behavior when typing fast as mentioned in the subject line. I think it may have to do with the method I use to sink the events? The details: my application is a separate program written in C++ and MFC in V...

WebBrowser control won't print from C#

I've got a WebBrowser control on a WinForms app that is loading XML which is converted to HTML/CSS. Looks beautiful if I just want to view it there or in a regular browser. When the form loads, it's supposed to navigate to the file, then when the OnDocumentCompleted event fires, it should set the header, footer, and default printer nam...