webbrowser-control

Shutdown computer via web page

荒凉一梦 提交于 2019-12-13 12:33:35
问题 I have web based application which automatically loads on kiosk mode (full-screen) in chromium web browser on client's Computer wich is powered by Windows 7. I want to place a shutdown button on web page, so that user can directly shutdown the computer. Is there any possibility to achieve this? What are the best solutions for both Windows & Linux? -P.S- I've full control over client's computer. (installing other software or browser extensions). it is a touch screen POS unit. 回答1: As you have

Where can I find the list of interfaces supported by the WPF WebBrowser.Document from C#?

前提是你 提交于 2019-12-13 11:23:47
问题 Where can I find the list of interfaces supported by the WPF WebBrowser.Document (namespace system.windows.controls) from C#? Moreover, where can I find the official documentation from Microsoft web site? The document from MS http://msdn.microsoft.com/en-us/library/system.windows.controls.webbrowser.document%28v=vs.110%29.aspx only state this: Remarks The Document object needs to be cast to the COM interface you are expecting. But I cannot find the list of interfaces that I can expect from

Read pdf contents using webbrowser control in C# [closed]

帅比萌擦擦* 提交于 2019-12-13 10:16:15
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 8 years ago . I need to render pdf file to a webbrowser control like how ie render it. question is, i need to get the content of the pdf file from the webbrowser control. how can i do it? help please. Jepe 回答1: Not sure if I

how to edit html using the webbrowser control? (turn on WYSIWYG features) [closed]

自作多情 提交于 2019-12-13 09:58:17
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . Similar to a WYSIWYG(What you see is what you get) editor I want the user to be able to visually edit the html document and move objects around. How can I turn on these html editing features for the web browser

How to enable cookies in WPF WebBrowser Control

随声附和 提交于 2019-12-13 09:11:01
问题 I need to enable cookies in my WPF application WebBrowser control even if it is disabled in the IE settings. After going through many questions this is what i tried, but this does not work. [DllImport("wininet.dll", CharSet = CharSet.Auto, SetLastError = true)] public static extern bool InternetSetOption(IntPtr hInternet, int dwOption, ref int flag, int dwBufferLength); static bool EnableCookies(int settingCode, int option) { if (!InternetSetOption(IntPtr.Zero, settingCode, ref option, sizeof

IHTMLTxtRange.pastHTML limit?

自作多情 提交于 2019-12-13 08:21:47
问题 I have the following problem. I have to find a phrase in html document and surround each word in the phrase in a span element. I'm searching with this code: var range = body.createTextRange(); range.moveToElementText(body); var i = 0; do { range.findText(note.Text, range.text.Length, 0); i++; if (i < note.Occurence) range.moveStart("character", 1); } while (i != note.Occurence); Then I surround every word in range.text with a span element and I try to replace original phrase with the one

WebBrowser control in .net for windows ce

左心房为你撑大大i 提交于 2019-12-13 08:11:25
问题 when I navigate to particular page using WebBrowser control in .net for windows ce device, it is not taking clicks for buttons on page.e.g Search button on Google page.. Actually this works for 1 device and not for other.. Can anybody help out solving this? 回答1: This needs to set registry, and keys that need be set are; Software\Microsoft\Windows\CurrentVersion\Internet Settings and the value that need to set is "WarnOnZoneCrossing" to '0' in current user registry. Software\Microsoft\Windows

handle web browser link event in wp7

孤者浪人 提交于 2019-12-13 08:03:13
问题 I am using WP7 WebBrowser control . On this page I have a hyperlink.This link are came from web service. I want to handle the click event of that hyperlink in my application's code behind (i.e. in C#).And i want display another web browser controll on this hyperlink click event Is there are a way for the WebBrowser control to handle click events? 回答1: If i understand you, you want to intercept the onClick event in your first WB control (call this WB1), and open that page up (when the

How to make the browser login and do something then re-login with another account

本小妞迷上赌 提交于 2019-12-13 05:24:09
问题 I have a simple program that i can open a webpage and i paste the user name and password from textbox1 then do something inside, after that a want to re-login with another account i can do it for tow or three accounts put i want to deal with an open number of usernames i want to take usernames from a Multiline textbox the code to paste only the first line and the pass word and click ok is: TextReader read = new StringReader(textBox2.Text); int rows = 500; string[] text1 = new string[rows];

Windows Forms WebBrowser and Google Maps Api Not Displaying Map

泪湿孤枕 提交于 2019-12-13 05:23:08
问题 I am using the .net 4.51 Windows Forms VS 2015. Today all my apps using the WebBrowser control stopped loading Google maps or at least displaying it correctly. The Webbrowser is just blank. I load the Google maps from: <script type="text/javascript" src="http://maps.google.com/maps/api/js? sensor=false"> If I zoom in and out quickly on the map the maps appears briefly flickering but wont show. Is anyone else experiencing this? 回答1: I have the same problem to my desktop win32 application and