webbrowser-control

Kendo UI Icons not displayed in Web browser control

夙愿已清 提交于 2019-12-07 02:44:29
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", able to see the icons in the Web Browser control. Is there any workaround to display the icons in

Kendo UI Icons not displayed in Web browser control

可紊 提交于 2019-12-07 02:43:43
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", able to see the icons in the Web Browser control. Is there any workaround to display the icons in

Get HTML Source after JavaScript manipulations

主宰稳场 提交于 2019-12-07 01:59:22
问题 How do i get the full! HTML source of a web page, after it has run some JavaScript code which has made manipulations to the HTML source. I'm using the WebbrowserControl of VB.Net, i'd like to create an extra function of my custom webbrowsercontrol which receives the full HTML source. Thanks in advance 回答1: The trick is going to be finding a way to notify the control about whether the JS is done running. You might be able to do that by having the JS set a form element' value (isJSComplete)

WebBrowser Control Mishandling Cookies when Internet Explorer is Open

痞子三分冷 提交于 2019-12-07 00:32:30
I'm building an application in C# that makes use of the WebBrowser control. This is loading a specific page (that I did not create) that uses a popup and a cookie that determines what the last "ID" searched for was. This all works fine, except when Internet Explorer is open in the background. When Internet Explorer is open in the background, the popup only goes to the first ID ever set. It would appear that the cookies aren't being stored properly when IE is open. Breakdown: User opens Internet Explorer. User opens My Application. User searches for XXX on page. User clicks popup. Popup

Fatal error on Custom WebBrowser (winforms) code

我们两清 提交于 2019-12-06 17:15:41
问题 Getting a fatal exception on the CustomWebBrowser (winforms) code. “ The runtime has encountered a fatal error. The address of the error was at 0x6c9a60c6, on thread 0xf94. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack. ” This is working fine on machines that has .Net Framework 4.5 installed, however not

Web browser control loading Outlook unusable VB.Net

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 16:25:38
问题 I have a web browser control that is added to a user control and is automatically made to navigate to a specific URL when an email is selected (lets say https://www.google.com). Whilst the navigation is going on, when clicking through emails, it slows down the actual performance of Outlook and outlook waits for the page to load. Is there a way I could carry out this navigation in the background without actually affecting the performance of Outlook when clicking through various emails? Thanks.

Windows phone 7 web browser control user agent

∥☆過路亽.° 提交于 2019-12-06 14:27:57
The present user agent for the browser control that i see in the emulator is Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0; Microsoft; XDeviceEmulator) and i want to change that to Mozilla/5.0 Windows NT 6.1 AppleWebKit/535.1 KHTML, like Gecko Chrome/14.0.835.187 Safari/535.1 or something similar. How to code that in C# to change the user agent string for the web browser control. Jeyanth Kumar Found a way webBrowser.Navigate("http://localhost/run.php", null, "User-Agent: Here Put The User Agent"); In Windows Phone 7.5, there is a Navigate method overload

Threading and webbrowser control

吃可爱长大的小学妹 提交于 2019-12-06 14:05:14
I'm very new to threading. I start a thread like this: Thread t_main; t_main = new Thread(main_building_stuff); t_main.Start(); And at some point, I want in the main_building_stuff to grap some data from an webpage that is loaded into an webbrowser controll in the main thread. I'm doing that with this piece of code: HtmlElement lit = webBrowser1.Document.GetElementById("buildqueue"); But that results in an error... InvalidCastException (specified cast is not valid) What is the proper way to receive the data from the webbrowser? Somebody that answerd the question, gave the right answer. But for

How to post data to a web server using wpf webbrowser

試著忘記壹切 提交于 2019-12-06 13:33:29
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 can I do this in wpf? As far as I can understand, I need to create an html and post it to site. My

Detecting when the webpage is fully loaded with webbrowser control c#

為{幸葍}努か 提交于 2019-12-06 13:25:47
I'm using a WebBrowser control , there is an event which is called DocumentCompleted , this event is fired for each frame in the web page and also for all the child documents (e.g. JS and CSS) that are loaded. my question is how to detect the last entry of this event, I mean how to detect when the page is fully loaded , and this event is not firing again . I looked for this a lot , I found a solution like this : void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { if (e.Url.Equals(webBrowser1.Url)) { // Here the page is fully loaded } } but this is not