webbrowser-control

CSS Firefox - How to deactivate the dotted border ( firefox click indicator )?

旧街凉风 提交于 2019-12-04 16:18:51
问题 This click indicator is a disgusting piece for my recent web projects.. I hate this! - How can I say to my Firefox browser that he should not mark the clicked object? 回答1: Provided that your menu items are not input elements (say, buttons), you can hide it using CSS, like so: element { outline: none; } 回答2: a { outline: none; } 回答3: Nothing helped (Firefox 20.1) until this: a:focus, a:active, button, input[type="reset"]::-moz-focus-inner, input[type="button"]::-moz-focus-inner, input[type=

What is the best WebBrowser control that allows one proxy per instance?

旧城冷巷雨未停 提交于 2019-12-04 15:45:26
I am making a multi-threaded [workers] application. Each thread should have it's own Non-GUI WebBrowser that Navigates to a web page and writes data to fields and click a button. I also need each WebBrowser to have it's own proxy. I tried the classic Windows.Forms.WebBrowser but I got stuck at the proxy part as it depends on IE global settings which won't work in my case. Any recommendations are welcome. note: I tried doing it through HttpWebRequest/Response but it will never work as the data to be passed to the page contains a field called [ab_test_data] which gets its value from javascript

Display Custom Dialog When File Downloaded

一世执手 提交于 2019-12-04 15:29:19
Looking for a solution to my issue. We are building a web browser control into a product for a client, they need to be able to detect when there is a File Upload box on a website, then instead of it launching the Windows 7 File Browser window, it needs to open their own custom designed one Is there a browser event that allows us to capture that? You can hook up your own download manager that is effective only in your webbrowser control host process by implementing IServiceProvider in the control site and implement QueryService to return an IDownloadManager object when asked by the webbrowser

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

吃可爱长大的小学妹 提交于 2019-12-04 14:49:14
问题 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 not responding to InvokeMember(“click”)

喜你入骨 提交于 2019-12-04 14:35:13
问题 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

How to Force WebBrowser Control to use New Session or clear sessions

三世轮回 提交于 2019-12-04 14:29:52
In my application, user will open multiple tabs by clicking on menus. Each tab is dynamically created and containing webbrowser control to load URL. Each URL point to same server and some of URL does not have access so , gives Resource not have access error received. Now, problem is, example- If user directly click on Menu3 and related tab loaded with webbrowser URL and follow to next, URL contain other popup link then it works and able to popup the URL. Now, user click on Menu5 where not have access so, get this error Resource not have access (denied from server ). Its fine. NOw, again URL

Clear WebBrowser control browsing history

一个人想着一个人 提交于 2019-12-04 14:27:25
问题 I want to clear WebBrowser control history after WebBrowser completes its browsing. 回答1: 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

How to invoke custom Javascript in System.Windows.Forms.WebBrowser?

让人想犯罪 __ 提交于 2019-12-04 12:52:21
I'm loading third party webpage that contains following code <script type="text/javascript"> onDomReady(function() { some_code1; }); </script> into WebBrowser component. After some_code1 had executed I need to do some manipulations with Dom that will make some_code1 invalid. The question is how to determine that some_code1 had executed? I cant't do private void web_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { DoRequiredManipulations(); } Since this event will occur before some_code1 has executed and will make it invalid. Also I can't do private void web

Catching and handling Web Browser Close Event

不问归期 提交于 2019-12-04 12:50:52
I am Using Windows Forms and a WebBrowser Control, I am in need of catching and handling the WebBrowser Controls call to close. I have looked at this but it is not working as I need it to: http://blogs.artinsoft.net/Mrojas/archive/2009/05/21/Extended-WebBrowser-Control-Series-WebBrowser-Control-and-windowClose().aspx This is the message I get: --------------------------- Web Browser --------------------------- The webpage you are viewing is trying to close the window. Do you want to close this window? --------------------------- Yes No --------------------------- I need to catch this event and

Using jQuery in WinForms desktop app?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 12:27:33
We have a WinForms desktop application that uses the .NET 2.0 framework WebBrowser control quite extensively for displaying HTML. The HTML may be simple, or quite complicated. It may reside on disk, or it may be written directly to the document property at runtime. I was wondering if anyone had any experience with using jQuery as a library for such desktop applications. Can i just reference the jquery.js file on disk, and use it just as if it were a web app? Are there any pitfalls that I need to be aware of? At the end of the day, it's just HTML markup in a browser, treat it as you would if