webbrowser-control

Use Blockly inside a WPF WebBrowser

可紊 提交于 2019-12-21 08:48:31
问题 Is it possible to use the Blockly google javascript libraries inside a WPF WebBrowser? In particular, Blockly needs several js scripts. How can we reference the js libraries? 回答1: Short Answer You can use all blocky features including UI tools and API functions from WPF WebBrowser control. To do so you should: Create an HTML content which contains script tags referencing Blocky js , or methods which you want to call from C#, and required HTML and XML contents based on your requirement (for

Use Blockly inside a WPF WebBrowser

夙愿已清 提交于 2019-12-21 08:48:09
问题 Is it possible to use the Blockly google javascript libraries inside a WPF WebBrowser? In particular, Blockly needs several js scripts. How can we reference the js libraries? 回答1: Short Answer You can use all blocky features including UI tools and API functions from WPF WebBrowser control. To do so you should: Create an HTML content which contains script tags referencing Blocky js , or methods which you want to call from C#, and required HTML and XML contents based on your requirement (for

Use Blockly inside a WPF WebBrowser

不问归期 提交于 2019-12-21 08:48:07
问题 Is it possible to use the Blockly google javascript libraries inside a WPF WebBrowser? In particular, Blockly needs several js scripts. How can we reference the js libraries? 回答1: Short Answer You can use all blocky features including UI tools and API functions from WPF WebBrowser control. To do so you should: Create an HTML content which contains script tags referencing Blocky js , or methods which you want to call from C#, and required HTML and XML contents based on your requirement (for

Set Proxy Credential in Web Browser Control

 ̄綄美尐妖づ 提交于 2019-12-21 06:41:38
问题 I am working on a legacy code where an application uses AxSHDocVw.AxWebBrowser ( not System.Windows.Forms.Control ) to open up web pages and am extending it to take proxy into considerations. I have following example on http://www.pinvoke.net/default.aspx/wininet/internetsetoption.html to use InternetSetOption() to go through specified proxy and tested that it works. Now the hurdle is I tried everything but failed to pass username and password with following code: //-- Set Proxy Username bool

Set Proxy Credential in Web Browser Control

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-21 06:41:26
问题 I am working on a legacy code where an application uses AxSHDocVw.AxWebBrowser ( not System.Windows.Forms.Control ) to open up web pages and am extending it to take proxy into considerations. I have following example on http://www.pinvoke.net/default.aspx/wininet/internetsetoption.html to use InternetSetOption() to go through specified proxy and tested that it works. Now the hurdle is I tried everything but failed to pass username and password with following code: //-- Set Proxy Username bool

Detecting external content with TEmbeddedWB or TWebBrowser

我们两清 提交于 2019-12-21 05:39:23
问题 I am trying to block anything external loaded by TEmbeddedWB or TWebBrowser (or TCppWebBrowser). I would like to block anything that is loaded from Internet including images, javascript, external CSS, external [embed] or [object] or [applet] or [frame] or [iframe], executing JavaScript that can load external content etc. This problem consists of 2 parts: putting web browser into "restrict all" (except basic HTML without images) and detecting if such content exists if external content is not

C# WebBrowser control not applying css

别说谁变了你拦得住时间么 提交于 2019-12-21 04:15:20
问题 I have a project that I am working on in VS2005. I have added a WebBrowser control. I add a basic empty page to the control private const string _basicHtmlForm = "<html> " + "<head> " + "<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/> " + "<title>Test document</title> " + "<script type='text/javascript'> " + "function ShowAlert(message) { " + " alert(message); " + "} " + "</script> " + "</head> " + "<body><div id='mainDiv'> " + "</div></body> " + "</html> "; private

What functional differences exist between WPF and WinForms WebBrowser control?

半城伤御伤魂 提交于 2019-12-21 03:38:21
问题 WPF WebBrowser control looks great but knowledge accumlated over time about WinForms WebBrowser is substantial and it's hard to ignore work like csExWB. It would be nice to know what functional shortcomings or advantages exists in .NET 3.5's WPF WebBrowser control over WinForms WebBrowser control. In particular, is it possible to build csExWB-like functionality on top of WPF WebBrowser? 回答1: From one full day of frustration with wpf's component, here's what I discovered. Apparently, winforms

What is the best web browser control to use on Windows Form Application? [closed]

折月煮酒 提交于 2019-12-21 02:40:40
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I am looking for a web browser control or any technology that can render web pages on a Windows Form Application Faster. Any suggestions? I am using .Net and the built-in web browser control is not an option to me because it has a lot of issues and is slow. I've tried GeckoFX and so far I considered it good

How to hide HtmlElement in webbrowser control

自作多情 提交于 2019-12-21 02:37:28
问题 I have a webbbrowser control that navigates to a page that contains an image, and i want to hide or delete this image from my webbrowser. I've tried to set on DocumentCompleted event the method below with no luck: webBrowser1.Document.GetElementById("imgToHide").Style = "display:none"; How to hide an htmlelement from a webbrowser control? My programing language is C#. Below is my code: private void Form_Load(object sender, EventArgs e) { webBrowser1.ScriptErrorsSuppressed = true; webBrowser1