webbrowser-control

WebBrowser shortcuts not working in PowerPoint add-in… but WebBrowserShortcutsEnabled is true

我的梦境 提交于 2019-12-08 08:52:22
问题 I'm building a powerpoint add-in that is going to be based around an embedded browser. For some reason, though, the standard shortcuts don't work. The WebBrowserShortcutsEnabled property is set to true (though I even got as far as trying setting it to false in case I was in backwards world). Stripping it down to the bare bones, my repro steps are: Create a new project, selecting the PowerPoint 2013 Add-in project type Add a new User Control to the project Add a WebBrowser to that control,

add custom context menu to hosted web browser control

▼魔方 西西 提交于 2019-12-08 08:46:41
问题 I am hosting a web browser control, and want to provide my own context menu. Ideally, I want to present my own context menu, that contains the original browser's context menu (with all addins etc.) as a sub menu. If that's not possible / to tricky, I'd be ok with e.g. normally showing my context menu, and showing the original one when the user presses SHIFT. Do I need to implement IDocHostUIHandler? if yes, how do I specify a custom context menu, how can I force the original one? How do I get

Navigating trough objects of a web page, using an embedded web browser

女生的网名这么多〃 提交于 2019-12-08 08:30:23
问题 I have a Windows Forms application that uses a WebBrowser control to display an embedded web page. The file is (successfully) loaded using: webHelp.DocumentStream= Assembly.GetExecutingAssembly() .GetManifestResourceStream("MyAssembly.help.html"); In order for this to work (i.e. the file to be loaded/displayed) I set the webHelp.AllowNavigation = false; . I don't fully understand why, but if it's set to true, the page is not displayed. In my HTML document (see bellow) I want to be able to

Does navNoReadFromCache really works?

半城伤御伤魂 提交于 2019-12-08 08:21:18
问题 In vb6 web browser control i want to always read files freshly from web not from cache when i navigate. In this link flag navNoReadFromCache is mentioned as not implemented. But in so many website it was mentioned like use it to prevent reading from cache. So is this really works? Please give explanation on this 来源: https://stackoverflow.com/questions/23136680/does-navnoreadfromcache-really-works

DocumentCompleted firing only once

强颜欢笑 提交于 2019-12-08 08:10:21
问题 I have a WebBrowser inside a form and I want to do some automation with it. I click a button inside a windows form that commands the Navigate method of the WebBrowser to a certain page. Then I automatically click a link after DocumentCompleted has fired but after that I want to also click a Button that exists in the new page that appeared by clicking the link. It seems DocumentCompleted fires only when I click the button in the windows form not when I automatically click the a link inside the

Wait for WebBrowser to finish process

我的未来我决定 提交于 2019-12-08 08:04:21
问题 What's the best way to code in a wait for the browser to finish process before continuing? I tried this code below and the process is not waiting till its complete before processing the next link. void WaitBrowserLoading() { while (webBrowser1.IsBusy) Application.DoEvents(); for (int i = 0; i < 500; i++) if (webBrowser1.ReadyState != WebBrowserReadyState.Complete) { Application.DoEvents(); lblStoreID.Text = ""; //System.Threading.Thread.Sleep(5); } else break; Application.DoEvents(); } 回答1:

Getting HTML from Cefsharp Browser

大憨熊 提交于 2019-12-08 07:32:57
问题 I am using CefSharp v55.0 in my WinForm project. After the page is loaded, I want to get HTML code from it. And for that I am using this: private void WebBrowserFrameLoadEnded(object sender, FrameLoadEndEventArgs e) { if (e.Frame.IsMain) { test.ViewSource(); test.GetSourceAsync().ContinueWith(code => { var html = code.Result; }); } } And for the crosscheck, I am also calling test.ViewSource() method, to see that if GetSourceAsync method is getting the whole code or not. Unfortunetely, codes

Displaying an Image in a WebBrowser Control without accessing external Files

送分小仙女□ 提交于 2019-12-08 07:27:14
问题 I am using the WebBrowser Control in C# in an application to display HTML. All the data comes from a database, so I am generating a full page with Inline-CSS in Memory and sending it to the browser. But now I want to support images, which seems to be a problem because I do not want to store the images on Hard drive, not even in a Temp Directory. I am aware of the data: URI Scheme, but that seems to be too limited. I wonder: Can I somehow use JavaScript to dynamically generate an image, given

WebBrowser Event Properties?

橙三吉。 提交于 2019-12-08 06:46:21
问题 Can I figure out if a function has already been assigned to an event? e.g. (Standard winforms app with web browser control) namespace Crawler { public partial class Form1 : Form { WebCrawler.manager m; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { system.windows.forms.webbrowser wb = new system.windows.forms.webbrowser(); wb.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(foo); //[... Some other code ...] /* [Begin Example] */

Get HTML from Frame using WebBrowser control - unauthorizedaccessexception

喜夏-厌秋 提交于 2019-12-08 06:40:46
问题 I'm looking for a free tool or dlls that I can use to write my own code in .NET to process some web requests. Let's say I have a URL with some query string parameters similar to http://www.example.com?param=1 and when I use it in a browser several redirects occur and eventually HTML is rendered that has a frameset and a frame's inner html contains a table with data that I need. I want to store this data in the external file in a CSV format. Obviously the data is different depending on the