webbrowser-control

webbrowser does not display page until an event occurs

点点圈 提交于 2019-12-13 04:34:33
问题 I am using the .net compact framework webbrowser control on a Windows CE device. The .Net application has a web server running on the device under a different thread. The webbrowser interacts with the web server as per normal browser functionality. The problem is that when pages are requested the screen does not always display until there is some browser event. An example is if I put a Javascript alert(...) statement within the page's script. The screen will blank and the message will display

catch ajax response data in web browser control C#

爷,独闯天下 提交于 2019-12-13 04:30:12
问题 I'm making a program that use web browser control for weighing. After weighing, new record will be added using ajax and the printer will print new item information automatically. My problem is that I don't know how to catch the response message that when the ajax done. So, my question is do we have any method/handler that catches response data from ajax in web browser control? Anyone who know how to do please help me! 来源: https://stackoverflow.com/questions/18332043/catch-ajax-response-data

Webbrowser control add style to tags already having style

坚强是说给别人听的谎言 提交于 2019-12-13 04:04:10
问题 In vb6 web browser control i am want to set style property for backgrpund color.I am doing it as shown below If P.getAttribute("name") = "mybookmark" Then P.Style.cssText = "background-color:#FFFFEB" End If But if i do this then it overrides the style properties if any are there already. for example if a html tag with <A name="mybookmark" style="font-size:12px">abc</A> exists then my code will remove existing style add background color property. So how to add style property for existing one?

Inject/serve custom CSS in WP8 WebBrowser Control [duplicate]

心已入冬 提交于 2019-12-13 03:59:36
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: How to inject Javascript in the WP7 WebBrowser control? I have a WebBrowser control in my MainPage.xaml serving an external web page. <phone:WebBrowser Name="TravelPlanner" Source="http://URL-HERE.com" IsScriptEnabled="True"/> Is it possible for me to somehow inject or serve my own CSS (or JavaScript for that matter)? 回答1: Yes. By invoking WebBrowser.InvokeScript after WebBrowser.LoadCompleted you can execute

wp7 open another web browser control inside web broser control

风流意气都作罢 提交于 2019-12-13 03:56:36
问题 I have web browser control which contains many links and data. All these data are coming from web service. Now i want open another web browser control when i click on first web broser link. so how it can be done? my first web broser code is : webBrowser1.NavigateToString(htmlCode); 回答1: You could have another webBrowser hidden under webBrowser1. Lets call it webBrowser2 . Now when a user hits a link on webBrowser1, capture it a string lets say link . Now you can navigate to link using

WPF WebBrowser - open links in default browser

泄露秘密 提交于 2019-12-13 00:45:46
问题 I am using a WPF System.Windows.Controls.WebBrowser control to show some HTML content that is downloaded from a service. Sometimes the HTML contains URLs ("a" elements) that should be clickable. By default, when such an URL is clicked it opens in Internet Explorer. I want them to open in the default browser instead. Note I am talking specifically about the WPF WebBrowser. There are tons of solutions for the WinForms browser, but they do not work for the WPF browser. The most common "solution"

Resize Dialog/WebBrowser to webpage width

自作多情 提交于 2019-12-13 00:33:42
问题 Is there a way to auto resize a window with a webbrowser control based on the initial webpage loaded? Not having any luck with .Height or .Width properties, also tried the ActualWidth, ActualHeight ones too. Here is the XAML. <dialog:Window x:Class="MyApplication.Widgets.Controls.DiagnosticsWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns

What do I need to look into to fix this printing issue

自闭症网瘾萝莉.ら 提交于 2019-12-13 00:27:01
问题 The problem I am facing is that my code works when I run as me but doesn't work when I run as a domain account. I'm opening an .mht file from a file location and tring to print it. Opening the file works and it displays the page fine but printing it doesn't work. Heres my code so far: Dim ie As SHDocVw.InternetExplorerMedium = New SHDocVw.InternetExplorerMedium AddHandler ie.PrintTemplateTeardown, AddressOf PrintedCB AddHandler ie.DocumentComplete, AddressOf LoadedCB ie.Visible = True

Gettig Htmlelement based on HtmlAgilityPack.HtmlNode

泪湿孤枕 提交于 2019-12-12 19:53:14
问题 I use HtmlAgilityPack to parse the html document of a webbrowser control. I am able to find my desired HtmlNode, but after getting the HtmlNode, I want to retun the corresponding HtmlElement in the WebbrowserControl.Document. In fact HtmlAgilityPack parse an offline copy of the live document, while I want to access live elements of the webbrowser Control to access some rendered attributes like currentStyle or runtimeStyle HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();

Error using WebBrowser control inside PowerBuilder app when select an item in <select> tag

ぐ巨炮叔叔 提交于 2019-12-12 19:17:36
问题 I'm using WebBrowser control in a window inside a PowerBuilder 11.5 application. Everything works fine on IE7 and IE8 but the application crashes in IE9 under Windows 7 when you select an item in a tag. In IE7 and IE8 I added my application to registry key FEATURE_USE_WINDOWEDSELECTCONTROL. In IE9 under Windows 7 64bits did the same and if the REG_DWORD value that corresponds to my application is 1, the application crashes. If the value is 0, the application does not crashes but item