webbrowser-control

How to hide HtmlElement in webbrowser control

Deadly 提交于 2019-12-03 09:22:22
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.Navigate(oURL); } private void webBrowser1_DocumentCompleted(object sender,

What's a good browser-based terminal emulator? [closed]

人盡茶涼 提交于 2019-12-03 09:19:17
问题 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 6 years ago . We have several curses style applications which we'd like to provide access to through a browser-based interface. We have an application from another vendor which ostensibly provides this based on an old version of the JTA (Java Telnet App) but that applet doesn't handle things like resizing well, and has

WebBrowser control not responding to InvokeMember(“click”)

旧城冷巷雨未停 提交于 2019-12-03 08:43:28
After spending 5 days of my life, I'm about to give up on this, but am consulting the experts once before that. I have a WebBrowser control that loads a webpage and I programmatically scrape its contents. Clicking a particular menu item in the page brings up File Open dialog when done in IE (or any other browser). But clicking the same button in WebBrowser control using InvokeMember() apparently doesn't do anything no matter what. I've gone through several SO questions such as Setting Browser Features to make sure my control behaves exactly like IE, but that hasn't succeeded. I went as far as

How to carry out Cross Domain request in a Webbrowser Control?

走远了吗. 提交于 2019-12-03 08:34:27
As you know doing Cross Domain XMLHTTP requests is not allowed for security reasons under Internet Explorer. I have a WebBrowser Control and I'm using DocumentText instead of Navigate to a URL. Since the current domain is about:blank when the page tries to do a request to itself or other domain I'm getting Access is denied Javascript error. Even when I use Navigate if the Javascript do a request to another domain it doesn't work. How can I get around this? This HTML code should work with WebBrowser Control: <body> <a href="javascript:getit('http://www.google.com')">this should work</a> <div id

Implement IDownloadManger for my application only

这一生的挚爱 提交于 2019-12-03 08:32:41
I'm using the WebBrowser control in a WinForms application and have implemented my own download manager by following the instructions here . My custom download manager works, but also overrides the download manager for Internet Explorer , too*. Is there a way to only have the custom download manager appear when my application is running? Or is there a way to unregistered it when my application closes? *I appreciate that is precisely the point of implementing IDownloadManager , and the WebBrowser control is just, essentially, Internet Explorer (which is why I have gone down this route). The

Clear WebBrowser control browsing history

↘锁芯ラ 提交于 2019-12-03 08:27:45
I want to clear WebBrowser control history after WebBrowser completes its browsing. The history state of the System.Windows.Forms.WebBrowse control is internal and cannot be modified directly. All actions are performed via the GoBack and GoForward methods. You can prevent your users from going backwards and forwards by setting the CanGoBack and CanGoForward properties to false. You would also want to modify the AllowWebBrowserDrop , WebBrowserShortcutsEnabled and IsWebBroserContextMenuEnabled properties as well. Because history is only exposed through these methods, properties and user actions

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

最后都变了- 提交于 2019-12-03 07:43:12
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 enough. It's rather slow but faster than the .Net web browser control and it has a lot of good features too. Update I've been testing a lot of web browser control and we end up using Awesomium. Great web browser control for windows app And is fast too. Here is the link http://awesomium.com/

CefWebBrowser doesn't show up

六月ゝ 毕业季﹏ 提交于 2019-12-03 07:36:00
问题 Solution: This issue is caused by not loading the CefRuntime in the Program.cs. Simply copying all code in the sample file to your Program.cs. And then if your CefWebBrowser is stuck and having "a spinning wait mouse cursor" then set the SingleProcess = true. The reason is if the browser is called from a recognized secondary process, the whole process will be blocked until the process is ended. Question: Anyone has experience using CEF (Chromium Embedded Framework) in WinForm? This component

How to get XML (RAW/SOURCE) from a WebBrowser Control

为君一笑 提交于 2019-12-03 07:32:01
I am using the WebBrowser Control in my both Delphi and .Net C# test projects to navigate to a local test XML file and try to save the content back to a XML file in .Net DocumentCompleted Event and in Delphi onNavigateComple2 event. The Problem is that I always get HTML which will be transformed by Browser for viewing (check my output: I saved that with using the following code) procedure TForm1.SaveHTMLSourceToFile(const FileName: string; WB: TWebBrowser); var PersistStream: IPersistStreamInit; FileStream: TFileStream; Stream: IStream; SaveResult: HRESULT; begin PersistStream := WB.Document

Chrome/ Firefox Alternative to TWebBrowser Control

故事扮演 提交于 2019-12-03 07:19:42
I have a Delphi app that shows a group of webpages in a TWebBrowser control. Its a kiosk type app so a user touches a button on the side and it shows a particular webpage in a tab. I am having some problems with certain sites and getting IE javscript errors. I would like to know if there is a way I can embed a chrome or firefox browser in a tab or on a form from Delphi? This question seems to answer the issue I had with getting javascript errors. I should have googled first. Found this http://code.google.com/p/delphichromiumembedded/ Took a little bit of fiddling, but seems to work good. 来源: