webbrowser-control

how to winform texboxt Text transfer value web page textbox

荒凉一梦 提交于 2020-01-06 02:45:11
问题 I have textbox1 , I want to transfer textbox1.Text into webbrowser1 web page textbox, how to do this? I have below code, but webpage text box selected index change event not fired. How to do this? private void button2_Click(object sender, EventArgs e) { HtmlDocument doc = webBrowser1.Document; HtmlElement HTMLControl2 = doc.GetElementById("flightno-filter"); //HTMLControl.Style = "'display: none;'"; if (HTMLControl2 != null) { // HTMLControl2.Style = "display: none"; HTMLControl2.InnerText =

Browser plugin which can register its own protocol

被刻印的时光 ゝ 提交于 2020-01-05 17:37:23
问题 I need to implement a browser plugin which can register its own protocol (like someprotocol://someurl) and be able to handle calls to this protocol (like user clicking on 'someprotocol' link calls function inside my plugin). As far as I understand, Skype does something similar, except I need to handle links within page context and not in a separate app. Any advice on how this can be done? Can this be done without installing my own plugin, with the help of flash/java? 回答1: Things are going to

Browser plugin which can register its own protocol

别等时光非礼了梦想. 提交于 2020-01-05 17:37:10
问题 I need to implement a browser plugin which can register its own protocol (like someprotocol://someurl) and be able to handle calls to this protocol (like user clicking on 'someprotocol' link calls function inside my plugin). As far as I understand, Skype does something similar, except I need to handle links within page context and not in a separate app. Any advice on how this can be done? Can this be done without installing my own plugin, with the help of flash/java? 回答1: Things are going to

How can I communicate between a windows forms application and a WebBrowser control

北慕城南 提交于 2020-01-05 12:29:32
问题 Is there any mechanism that I can push data into a webbrowser control from the containing windows forms application. Specifically the webbrowser control contains some knockout.js and I want to allow some external events such as changes to certain files in the local filesystem to update the knockout viewModel. At the moment I have this working after a fashion with the JS in the webbrowser control issuing a longpolling jsonp requests to a micro webserver I have written running in the windows

Threading concept to improve the webbrowsers URL navigation process in C#

纵然是瞬间 提交于 2020-01-05 04:39:08
问题 I have developed a simple Id checking windows forms with C# application to check a set of given Ids valid or not by passing to a webpage using webbrowser control and getting the reply and everything is working fine,its taking 40 - 60 seconds for 20 Ids.one by one.Now i want to speed up the same process using advance threading concept in C# . Code is working fine i want to improve the performance using threading. any simple suggestion would be great help today private void button2_Click(object

Why document.createEvent is not supported with webbrowser on IE9+ and how to fix it?

狂风中的少年 提交于 2020-01-05 03:07:31
问题 I'm using Windows 8, Internet Explorer 10, Visual Studio 2013 Here is javascript code : function simulate(element, eventName) { var options = extend(defaultOptions, arguments[2] || {}); var oEvent, eventType = null; for (var name in eventMatchers) { if (eventMatchers[name].test(eventName)) { eventType = name; break; } } if (!eventType) throw new SyntaxError('Only HTMLEvents and MouseEvents interfaces are supported'); if (true || document.createEvent) // temporary it's always true to check IE

How to “render” HTML without WebBrowser control

匆匆过客 提交于 2020-01-04 16:58:31
问题 First at all - I don't know if "render" is the right word. I like to get information from an website. At the moment therefore I use the WebBbrowser control. Now I like to use HttpWebRequests because I think, that's much faster and threading could be used more easily. But I can't use them, because the HTML-output string I receive from HttpWebRequest has got a lot of JavaScript inside from which the information, that I need, will be created. The web browser "renders" the JavaScript to readable

getting IHTMLStyle3 from the Dom of HtmlElement in IE

橙三吉。 提交于 2020-01-04 02:14:08
问题 I've got a System.Windows.Form.WebBrowser control on a form. I navigate that browser object to a url. Once the page has finished loading, I'd like to analyse various aspects of the page that loaded. In particular I'm interested to see the attribute 'writingMode' which is found on the IHTMLStyle3 interface. Something like: public void MyMethod(HtmlElement element) { IHTMLElement2 element2 = element.DomElement as IHTMLElement2; IHTMLStyle3 style3 = element2.currentStyle as IHTMLStyle3; string

HtmlAgilityPack getting page title and H1 tags

ぐ巨炮叔叔 提交于 2020-01-03 21:00:37
问题 Hey all i am trying to get the page title and H1 tags from a webpage by doing the following doc.LoadHtml(htmlSourceCode) txtTitle.Text = doc.GetElementsByTagName("title").InnerText() txtH1.Text = doc.GetElementsByTagName("H1").InnerText() For Each channel In doc.DocumentNode.SelectNodes(".//meta[@name='description']") txtDescription.Text = channel.Attributes("content").Value Next The only code above that works is the txtDescription part. Both the title and H1 do not. What type of syntax do i

How to embed a browser control inside Visual Basic 6? [closed]

风流意气都作罢 提交于 2020-01-03 17:20:35
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 12 months ago . I'd like to embed a web browser control into a Visual Basic 6 application. The only problem is that I would NOT like to use Internet Explorer, as it has several issues and that's currently what I'm using. Firefox, Chrome or even Opera would be appreciated if it was reasonably