424,294 Members | 1,898 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,294 IT Pros & Developers. It's quick & easy.

AxSHDocVw.AxWebBrowser - Follow a link and other question

P: n/a
MPR
Hi guys;

I'm using an AxSHDocVw.AxWebBrowser control to show a web page.

I need to know if i can ( and how? ) i do the following things:

1 - I need to follow 1 link in the webpage diplayed in the
AxSHDocVw.AxWebBrowser control.

2 - I need to input some data in a texto box on it
Thanks a lot!

MPR
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi,

Open a new windows application project

In the toolbox rightclick and select add/Remove items

In the customize toolbox select Com and in that Microsoft Webbrowser

When that is in the toolbox drag it to your form
Drag also a button to your form.

Then this code and you have a mini Webbrowser.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.AxWebBrowser1.Navigate2("www.google.com")
End Sub
I hope this helps a little bit?

Cor

I'm using an AxSHDocVw.AxWebBrowser control to show a web page.

I need to know if i can ( and how? ) i do the following things:

1 - I need to follow 1 link in the webpage diplayed in the
AxSHDocVw.AxWebBrowser control.

2 - I need to input some data in a texto box on it
Thanks a lot!

MPR

Nov 21 '05 #2

P: n/a
MPR
Actualy i'm displaying a web page with navigate2.

On the web page that is already in the axWebBrowser control, there are
severla links.
I want to follow one of them, like emulating a click.

Thanks

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:e$**************@TK2MSFTNGP11.phx.gbl...
Hi,

Open a new windows application project

In the toolbox rightclick and select add/Remove items

In the customize toolbox select Com and in that Microsoft Webbrowser

When that is in the toolbox drag it to your form
Drag also a button to your form.

Then this code and you have a mini Webbrowser.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.AxWebBrowser1.Navigate2("www.google.com")
End Sub
I hope this helps a little bit?

Cor

I'm using an AxSHDocVw.AxWebBrowser control to show a web page.

I need to know if i can ( and how? ) i do the following things:

1 - I need to follow 1 link in the webpage diplayed in the
AxSHDocVw.AxWebBrowser control.

2 - I need to input some data in a texto box on it
Thanks a lot!

MPR


Nov 21 '05 #3

P: n/a
MPR,

Not easy however you need for that MSHTML
http://msdn.microsoft.com/library/de...LDHTMLAPIs.asp

You need to get the document, do not forget that the page can exist in more
frames so there are more documents.

As well do not set an import in your program, there are so many interfaces
in mshtmel that your IDE will almost completly freeze.

I hope this helps a little bit?

Cor
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.