I'm writing a small utility to capture all requests made to a web server from a windows application using the axWebBrowser control.
So far I have the following working, as the user traverse the website clicking on links, posting forms etc I capture the webpage and the data being send to the server to request the next page.
Where I ru...
I am using VB 2008 express and would like to know
If i can Replace a string inside of Javascript on page loaded into axWebBrowser so i can then execScript that function.
The specific string i wish to replace is "_new" to "_self"
this is so when i call the function it will load in the same page instead of poping into a new web browser.
...
Oh, I am stuck again on this quiet annoying problem. I am trying to do a little automated browsing using the axWebBrowser component and it worked before. Now all of a sudden I get the following message when I try to browse to a page.
Navigation to the webpage was canceled
What you can try:
Refresh the page.
I totally di...
The event handlers on my program don't work anymore for some reason. This same exact code I've ran several times before.
object loc = "http://www.google.com/";
object null_obj_str = "";
System.Object null_obj = 0;
this.axWebBrowser1.Navigate2(ref loc , ref null_obj, ref null_obj, ref null_obj_str, ref null_obj_str);
this.axWebBrowser1...
How to programmatically control multiple browsers (aXWebBrowser control), from a single winforms app process, targeting the same remote website, but each browser living in its own session scope with the remote site?
Goals
- Build an application which automates use of a website. The goal is for the application to do the work of up to 5...
Hi All,
We need to get web page HTML source document loaded on the PIE web browser in windows mobile. source code that we tried is listed below:
IDispatch* pHtmlDocDispatch;
IOleCommandTarget* pOleCommandTarget;
WEBVIEWLib::IPIEHTMLDocument2* pHTMLDocument2;
WEBVIEWLib::IPIEHTMLWindow2* pHTMLWindow;
IPIEHTMLElementCo...
I wanna use AxWebBrowser on console application, but it give me following exception:
Exception of type 'System.Windows.Forms.AxHost+InvalidActiveXStateException' was thrown.
anybody please help me on this by any sample code for using AxWebBrowser in console application c# without any exeption ...
...
I'm trying to access my codebase with the COM AxWebBrowser control. In the .NET WebBrowser control you can do this with
mainWebBrowser.ObjectForScripting = this;
In the AxWebBrowser I found this:
var cDoc = (ICustomDoc)this;
cDoc.SetUIHandler((IDocHostUIHandler)this);
However, ICustomDoc is an interface I can't find anywhere. I'v...
I am creating an instance of AxWebBrowser in a win forms app because I need it to render flash. How can take a screenshot of the page it's rendered in C#?
...
VB.NET 2008 - WinForms
Hi Everyone!
I've been looking for an answer to my problem but I only find more questions related to my problem...
The thing is that I'm using a AxWebBrowser control in VB.NET 2008 to open a excel file in a WindowsForm, it opens succesfully and everything... but the problem is this:
If I had a Excel File Open b...
Private Sub NewToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewToolStripMenuItem.Click
Dim sFileName As String
With OpenFileDialog1
.FileName = "d:\my documents\01.xls"
.OpenFile()
sFileName = .FileName
End With
If Len(sFileName) Then
oDo...