webbrowser-control

Kendo UI Icons not displayed in Web browser control

懵懂的女人 提交于 2019-12-08 06:28:07
问题 I have a website developed using Kendo UI(kendoui.professional.2017.1.118.commercial). The Kendo icons(Grid Edit(k-i-edit) and delete command button icons and calendar control icons and grid pager icons, etc.) are not visible when i open my website in Microsoft Browser Control where as if i open the website in Internet Explorer browser the icons are displayed. Observed the following: I am using Windows Server 2012 R2 OS where the IE Enhanced Security Configuration is "ON". If i make this "OFF

C# Windows.Forms.WebBrowser scaling

雨燕双飞 提交于 2019-12-08 06:22:12
问题 I have a WebBrowser control in my Windows Forms app and want to change the "zoom level" of the HTML page I am loading (in my case Bing map). I expected to find ways to do this at the 'Document' property level, but there is no zoom or height/width/size property to play with (there is at the browser level but I don't want to resize the control itself). Attached are pics of what I want to do. Any thoughts? Thanks. Browser zooming issue 回答1: Jimi is basically right. But I will go ahead and give

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

▼魔方 西西 提交于 2019-12-08 05:40:22
问题 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:

Load image from WebBrowser without redownloading or copying

核能气质少年 提交于 2019-12-08 05:12:29
I am currently copying from clip board to load image from browser IHTMLDocument2 doc = (IHTMLDocument2) webBrowser1.Document.DomDocument; IHTMLControlRange imgRange = (IHTMLControlRange) ((HTMLBody) doc.body).createControlRange(); foreach (IHTMLImgElement img in doc.images) { imgRange.add((IHTMLControlElement) img); imgRange.execCommand("Copy", false, null); using (Bitmap bmp = (Bitmap) Clipboard.GetDataObject().GetData(DataFormats.Bitmap)) { bmp.Save(@"C:\"+img.nameProp); } } But it has some problems using clipboard. Is there any other way to do that. In internet explorer all images go to

WPF WebBrowser: How I do access progress and new window events

房东的猫 提交于 2019-12-08 05:04:37
问题 I'm building an a WPF app that uses the WebBrowser control. I'm struggling on a couple of points: How to get the current progress of a download from the control. The WinForms WebBrowser control raises ProgressChange events - how can I replicate this feature with the WPF variant? How to capture links that are trying to open in a new window. Again the Winforms WebBrowser had a NewWindow event. I could use this to stop IE being started and to open the link in the same window. Is it possible to

WPF WebBrowser fails to load rendered HTML of an Angular JS website

限于喜欢 提交于 2019-12-08 04:42:49
问题 I am working on a WPF aplication and I want to get the rendered HTML of a website that uses Angular JS technology. Here is what I've tried: First, I create a WPF Web Browser control: private WebBrowser webBrowser; Then I navigate it to my target web page: var uri = new Uri("http://my-angualrjs-site.com", UriKind.RelativeOrAbsolute); webBrowser.Navigate(uri); In the LoadCompleted event handler of my WebBrowser instance I cast the retrieved document to mshtml.HTMLDocument : var doc = (mshtml

Finding the text and highlighting the same with in IHtmlElement in webbrowser control

家住魔仙堡 提交于 2019-12-08 03:54:37
问题 I have to implement the TTS functonality to read out the web page opened in webbrowser control, while the reading the the text also i have to highlighting the work the system is reading but i am unable to do same. I view post here but not get the actual output as i want. and also when i am trying thie below code i am getting the error "System.Runtime.InteropServices.COMException was unhandled Message=Exception from HRESULT: 0x800A025E" on the trg.select() IHTMLDocument2 currentDoc =

How to enable special keys (ctrl-c, ctrl-v, tab, delete) Windows.Form.WebBrowser Control

笑着哭i 提交于 2019-12-08 02:52:00
问题 I have a Window.Form that has a WebBrowser control on it. How do you enable the control to process special keys like the Tab key for navigating between controls? I've seen answers for doing this in activeX and mfc controls but not for the .NET control. Thanks 回答1: The Windows.Forms WebBrowser control is a wrapper on the activex control. You have the property WebBrowserShortcutsEnabled (MSDN Link), however, that should be true by default. 来源: https://stackoverflow.com/questions/10435092/how-to

How to post data to a web server using wpf webbrowser

你说的曾经没有我的故事 提交于 2019-12-08 02:49:20
问题 I want to get data from a database and use it to login a user to a web site. I have a wpf page that holds a web browser control. and I have this code that login user to web site which is written in php: <form action='http://www.asite.net/index.php' method='post' name='frm'> <?php $user = $_GET['u']; $pass = $_GET['p']; echo "<input type='text' name='user' value='$user'>"; echo "<input type='text' name='pass' value='$pass'>"; ?> <input type='submit' name='submit' value='submit'> </form> How

WebBrowser control video element enter fullscreen

限于喜欢 提交于 2019-12-08 02:36:13
问题 In my project, I have a WebBrowser control with a video element and I want to insert a button that when I press it, the video element will switch to fullscreen mode. I tried this code: var video = document.getElementById('video'); if (video.requestFullscreen) { video.requestFullscreen(); } else if (video.mozRequestFullScreen) { video.mozRequestFullScreen(); } else if (video.webkitRequestFullscreen) { video.webkitRequestFullscreen(); } And it won't work. I read in some article that it's not