webbrowser-control

Using .NET WebBrowser control, why Salesforce.com logs the user in automatically after his/her session has been invalidated?

北城以北 提交于 2020-01-03 16:49:20
问题 I'm logging in users via REST in my .NET application. For that in the WebBrowser control constructor I do the following: string server = "https://login.salesforce.com/"; var authURI = new StringBuilder(); authURI.Append(server + "services/oauth2/authorize?"); authURI.Append("response_type=code"); authURI.Append("&client_id=" + clientID); authURI.Append("&redirect_uri=" + redirectURL); webBrowser1.Navigate(authURI.ToString()); This works fine, the user is being presented the standard sfdc

Using .NET WebBrowser control, why Salesforce.com logs the user in automatically after his/her session has been invalidated?

余生颓废 提交于 2020-01-03 16:49:08
问题 I'm logging in users via REST in my .NET application. For that in the WebBrowser control constructor I do the following: string server = "https://login.salesforce.com/"; var authURI = new StringBuilder(); authURI.Append(server + "services/oauth2/authorize?"); authURI.Append("response_type=code"); authURI.Append("&client_id=" + clientID); authURI.Append("&redirect_uri=" + redirectURL); webBrowser1.Navigate(authURI.ToString()); This works fine, the user is being presented the standard sfdc

Getting the back/fwd history of the WebBrowser Control

社会主义新天地 提交于 2020-01-03 11:57:08
问题 In C# WinForms, what's the proper way to get the backward/forward history stacks for the System.Windows.Forms.WebBrowser? 回答1: Check out http://www.bsalsa.com/downloads.html. This is a series of Delphi components (free source code, you can see an example of this here: http://staruml.cvs.sourceforge.net/staruml/staruml/staruml/components/plastic-components/src/embeddedwb.pas?revision=1.1&view=markup - it's the starUML projects code) and they have, among other things, a way to get at the

What could cause this memory issue?

我的梦境 提交于 2020-01-03 08:41:29
问题 I'm working on an app for windows phone 8, and I'm having a memory leak problem. But first some background. The app works (unfortunately) using WebBrowsers as pages. The pages are pretty complex with a lot of javascript involved. The native part of the app, written in c#, is responsible for doing some simple communication with the javascript(e.g. native is a delegate for the javascript to communicate with a server), make animation for page transition, tracking, persistance, etc. All is done

Differences setting content in Forms.WebBrowser control via DocumentText vs. Url

99封情书 提交于 2020-01-03 06:07:04
问题 If I generate some HTML and have it in a string and then say: myWebBrowser.DocumentText = string; It seems to work just fine, except none of the images load (I get the broken image graphic). If, however, I write the string to a file and then say: myWebBrowser.Url = new Uri("file://myfile.html"); Everything works just fine. My question is, what's going on under the covers here that is different? I've verified in both cases that the path to the images (via RClick->View Source) is the same and

C# WebBrowser send Mouse Click Event to Flash Object

我怕爱的太早我们不能终老 提交于 2020-01-03 05:16:12
问题 I've been reading around but didn't seem to find an answer to this question. The objective is: I have a WebBrowser in a Windows Forms Project. There is a HTML page loaded, and in that HTML page there is a Flash Object. My goal is to send a Mouse Click to (x, y) positions of that Flash Object. The (desired) Requisites The window with the Windows Forms executable doesn't need to be active in order for this to work The mouse must not be captured Send a mouse click based on coordinates (x, y),

How to intercept WebBrowser control's “Choose file to Upload” window before it opens?

送分小仙女□ 提交于 2020-01-03 04:15:08
问题 My application has to automate form filling and upload files using a webBrowser control. When I invokeMember("click"), the usual "Choose file to upload" form pops up and comes in front of any other application I may be using at the same time. Is there a way to intercept this window so that I can leep my form filling and file uploading in the background ? 回答1: The answer is that you probably can, however it will likely be an absurdly complicated process. You can hook into the windows

communication between 2 browser windows in electron

北战南征 提交于 2020-01-02 21:08:20
问题 I need to build an app that will span across multiple monitor screens, something like this: Electron suports multiple windows but how to comunicate between them? 回答1: The main thing to remember is that in Electron, interProcess communication is done by ipcMain (in the main process) and ipcRenderer(in all the created windows). Like below: From what i've seen in the GitHub comments - direct communication between the Renderer instances is not allowed. Everything must pass trough the mainProcess.

webbrowser encoding problem

China☆狼群 提交于 2020-01-02 18:45:11
问题 I am using a WebBrowser control in my project. My code example is below: webBrowser1.Navigate("Web Site goes here"); The web browser is navigating the Google website, however I can not see the Turkish characters. Therefore I use: webBrowser1.Document.Encoding = "UTF-8" However the problem still continues. Any idea to solve this? 回答1: StreamReader sr = new StreamReader(this.webBrowser1.DocumentStream, Encoding.GetEncoding("UTF-8")); string source = sr.ReadToEnd(); or you can try "iso-8859-9"

Web Browser Control LoadCompleted Event Not Firing

不羁岁月 提交于 2020-01-02 10:29:13
问题 Hopefully someone can help. I've created a user control which hosts a Web Browser control I've added this control to my new project. When I start the application and view the control the web site is loaded correctly and the LoadCompleted Event fires ok. However I actually initialize the control from another class and ask it to navigate to the page in the background (I invoke the UI Thread), I see the navigate method get called but the LoadCompleted Event never fires until you view the form