webbrowser-control

WebBrowser Control and Adobe Flash content

纵然是瞬间 提交于 2019-12-09 13:46:19
问题 I have a standard WebBrowser Control that has been modified to use IE11 in Edge Mode (see here for details for how I did that). I am unable to play Flash content on some websites, a notable one being BBC iPlayer and other media requiring Flash served on the BBC website, for which I receive the following error: There was a problem initialising the player. Script access is denied in your browser. I am able to view this content using Internet Explorer, and script access is enabled within IE.

WebBrowser Control download file in session

落爺英雄遲暮 提交于 2019-12-09 11:45:05
问题 I'm using WebBrowser control to navigate through a login page and download a file. Since I can't find a way to manage the download automatically with the control I'm using the WebClient class to try and achieve this. Problem is that since the WebClient isn't in the same context/session as the browser all i'm downloading is the Security Error screen. Any ideas on how I can pass the context of the WebBrowser session to the WebClient ? 回答1: It should be simply a matter of emulating the cookies

MSIEs WebBrowser control hosted in winforms app runs in compatibility mode

*爱你&永不变心* 提交于 2019-12-09 06:02:55
问题 I'm hosting MSIE in a winforms form. Unfortunately it insists on running in compatibility mode regardless of if I give it a page that runs in IE8 mode in stand-alone IE. The effect of that is that some content that renders correctly in stand-alone MSIE gets completely mis-aligned and messed up in the hosted control. Besides document type etc, is there some magic way to tell the webbrowser that I want it to render the page the same way as if I loaded it in stand-alone MSIE? I don't want to use

Capturing all requests and responses from the web browser control?

99封情书 提交于 2019-12-09 06:01:47
问题 Is there way to capture and print out all of the requests and responses from the web browser control including asynchronous requests? 回答1: Have you thought about using Fiddler? They even have an API that you might be able to use for this. Edit You can try using the Navigated event or LoadCompleted event for getting response information. You might be able to use the Navigating event for request information. These events might occur with async requests, but I'm not sure on that. The Edit

How to get XML (RAW/SOURCE) from a WebBrowser Control

℡╲_俬逩灬. 提交于 2019-12-09 05:35:48
问题 I am using the WebBrowser Control in my both Delphi and .Net C# test projects to navigate to a local test XML file and try to save the content back to a XML file in .Net DocumentCompleted Event and in Delphi onNavigateComple2 event. The Problem is that I always get HTML which will be transformed by Browser for viewing (check my output: I saved that with using the following code) procedure TForm1.SaveHTMLSourceToFile(const FileName: string; WB: TWebBrowser); var PersistStream:

How to Add the Firefox and Chrome to C# Browser Control?

心不动则不痛 提交于 2019-12-09 03:25:13
问题 Can you please let me know how I can add other browser controls like Chrome, Firefox, ... to C# web browser control?I am trying to create a HTML and CSS rules tester in C# and I need to have all of them inside the application 回答1: Assuming that you merely want to use other browsers, not add Chrome or Firefox to the C# Web Browser control...here are some helpful links: CefSharp Embedded Chromium for .NET: https://github.com/chillitom/CefSharp Embedding Gecko (firefox engine): https://developer

Add a customized header to WebBrowser control for all requests in C++/CLI?

拈花ヽ惹草 提交于 2019-12-08 22:34:28
I'm trying to reproduce this C# workaround in C++/CLI, but it doesn't work, here's my code: private: System::Void WebBrowser1_Navigating(System::Object^ sender, System::Windows::Forms::WebBrowserNavigatingEventArgs^ e) { System::Diagnostics::Debug::WriteLine("Running..."); auto activeXInstance = (SHDocVw::IWebBrowser2^) this->webBrowser1->GetType()->InvokeMember("ActiveXInstance", System::Reflection::BindingFlags::GetProperty | System::Reflection::BindingFlags::Instance | System::Reflection::BindingFlags::NonPublic, nullptr, this->webBrowser1, gcnew array<System::Object^>{}); System:

WebBrowser control: Navigation to the webpage was canceled

好久不见. 提交于 2019-12-08 20:28:54
问题 Setup Windows 8 (full) tablet .NET 2.0 application I'm working on a project in which 4 WebBrowser controls are navigating to some webpage simultaneously when the application is loaded. The webpages have the same HTML, but are coming from different web servers. The problem is that some of those pages display a "Navigation to the webpage was canceled" message in the WebBrowser control. This only happens when the application starts. I have implemented the solution described here to get the

scraping/simulate browsing help

耗尽温柔 提交于 2019-12-08 19:42:31
I want to make a program that will simulate a user browsing a site and clicking on links. Cookies and javascript have to be enabled. I've successfully done this in python, but I want to write it an compilable language (python ide's don't cut it). The links on the site are generated with javascript and are dynamic. With python I used PAMIE (third party module that uses win32com) to launch an instance of Internet explorer, scrape the generated html for the links, then navigate to one of them. The point is for the whole process to be transparent to the server. What's the best (compilable)

Invoke Javascript event on control from C# web browser control

若如初见. 提交于 2019-12-08 19:25:33
问题 I am working on a web scraper in C# where I have a web browser control that loads a web page, I then collect data and depending on the data also acting on it. My problem is that I need to write some data to a input (textbox) that has listeners. The input control never shows a value in the html, it is handled by some Javascript that is fired from events on the control. I can set a value to the controls value parameter but it is as it is missing when I click OK on the form. I have searched the