webbrowser

IE's getBoundingClientRect gives different answer in browser than in windows.forms.webbrowser - why?

Take the following html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html> <head> <title>Basic Layout</title> <style type="text/css"> html,body,div{font-family:Verdana} #Head{border-bottom:solid 10px #369} #Body{margin-left:200px;backgro...

Embedded web browser engine for cross platform desktop application?

I'd like to embed a browsing engine (HTML,JS,CSS,DOM) in my desktop applications. Which one is most suitable for me if I want to use it in a cross-platform desktop application? Should I stick to one specific or write my own abstraction layer on top of the natives ones? Update: A solution needs to provide an option for at least Windows/...

Open file from within a WebBrowser control?

Does anyone know if it's possible to open a file in the file system via a link in a WebBrowser component? I'm writing a little reporting tool in which I display a summary as HTML in a WebBrowser component with a link to a more detailed analysis which is saved as an Excel file on disk. I want the user to be able to click that link withi...

Use cookies without sending them back to the server

I need a way to stash some data that is global to the browser. If I open a new window with a URL from my app, e.g. via a bookmark, I need to access some data that was created in another window and never sent to the server. As far as I can tell the only thing that is global to the browser and not just a window, (like window.name), is a ...

WPF - How do i insert my proxy credentials in WebBrowser Control

Hello, i m using a webbrowser control in wpf to show a virtualearth map, but because i m developing behind a proxy of my company, every time i try to see the map, i have to inser my credetials, i would like to insert them automacly in the c# code, how can i achive that? i alreadt try in the navigating event of the web broweser using: ...

C#: WebBrowser.Navigated Only Fires when I MessageBox.Show();

I have a WebBrowser control which is being instantiated dynamically from a background STA thread because the parent thread is a BackgroundWorker and has lots of other things to do. The problem is that the Navigated event never fires, unless I pop a MessageBox.Show() in the method that told it to .Navigate(). I shall explain: ThreadSt...

How to display web page without getting blocked by the firewall?

I want our app to show the online help page (so it's always up to date) or even a local page. However, it's likely to be blocked by the Firewall (Zone Alarm). BTW, I tested this with Zone Alarm. It blocked access to a local .html file as well as to an .asp file on the internet. (I.e., tried to display a page in Internet Explorer and got...

Webbrowser Undo/Redo question

I'm using a webbrowser component in VS 2008 with C#. How can I determine (with execCommands or something like that) if something is one the browser's undo/redo stack and how can I reset this stack (so that no undo redo steps are available anymore). Thanks! ...

What do you use to debug JavaScript besides Firebug?

What are your favorite JavaScript debugging tools besides Firebug? Thanks, Eric Duplicate: http://stackoverflow.com/questions/103155/javascript-debugger ...

Is Web Browser "Discrimination" Okay?

Is it acceptable to add "special," but unnecessary, content based on a user's web browser? For example, is it okay to display this: at the top of my webpage for all IE users? ...

.NET WebBrowser control with Adobe SVG Viewer

I'm having problems with SVG files loading in a .NET 2.0 WebBrowser control. If I create a new WinForms application project, drag a WebBrowser control and a button onto the Form1.cs design surface, and add a line to the button's on-click handler to set the Url property of the WebBrowser control to an SVG file, I get two IE script errors...

Login without username and password from the web browser on Windows

I heard that on Windows you can login from a web browser to the web server without going through the usual login entering username and password but using instead the credentials from Windows directly, using the NTLM protocol. How is this achieved? Does the web server need to support some additional authentication? Update: I'm asking f...

How to clear System.Windows.Forms.WebBrowser session data?

How can I clear current session data (cookies, cached data, auth sessions, etc) without restarting the application? Update: I'm talking about WebBrowser control in Windows.Forms, not the ASP.Net session. ...

Are you forced to develop for old web browsers?

I always wondered why people are still running older web browsers until I started at my current job. Here I am forced to use IE6 to develop all of our internal applications, as our target users also are using IE6. Is anyone else in a situation where they aren't allowed to run the latest technology, and what is stopping you? Have you trie...

How to write a Vertical Right-Side IE Explorer Bar

Hi, I've written explorer bars (band object) before and AFAIK vertical explorer bars can only be on the left side. However, I was amazed when I saw this explorer bar by HP that is docked on the right hand side instead: I've searched up google for a bit and I can't find any resources on this. Does anyone know how to build a vertical r...

ScreenShot of WebBrowser Control blank on 301/302 redirects

I'm using some code from SmallSharpTools Web Preview to get screen shots of websites but i get a blank screen shot if the url returns a 301/302 redirect. WebBrowser wb = new WebBrowser(); wb.ScrollBarsEnabled = false; wb.Size = new Size(1024, 768); wb.ScriptErrorsSuppressed = true; wb.AllowNavig...

How to block downloads in .NET WebBrowser control?

I need to prevent the .NET WebBrowser control from showing any "Do you want to open or save this file?" and "Save As" dialogs. Instead, I want to display a message box telling users that file downloads are disabled for security reasons. I started with the FileDownload event of WebBrowser, but it does not allow cancellation. Then, I used...

Get the links id for the current cursor position in the webrowser control

We are using the WebBrowser control in c# winforms and need to be able to get information about the Url the cursor is positions on. So we have a web page in design mode, which has multiple urls, when the cursor is over one i would like to call a method which would return the id of the link. Thanks ...

Webbrowser control's window.external is ALWAYS null

The Web browser's Window.External object is always null! To reproduce drop a web browser on a new winform and type: Option Strict Off Public Class Form1 Private Sub Form1_Load() Handles MyBase.LoadMe.WebBrowser1.Document.Window.DomWindow.External.AddFavorite("http://www.google.com") End Sub End Class Make certain you...

.NET WebBrowser control javascript problem

Does anybody know if there is some sort of bug or issue with the webBrowser activex control in .NET applications, in this case the embedded browser loads a web page that depends on javascript to play music previews. It works once but if you navigate to a new page in the system it stops working. Viewing the same site in just a normal IE ...