PC Review


Reply
Thread Tools Rate Thread

AxSHDocVw.AxWebBrowser - Follow a link and other question

 
 
MPR
Guest
Posts: n/a
 
      21st Aug 2004
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


 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      21st Aug 2004
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
>
>



 
Reply With Quote
 
MPR
Guest
Posts: n/a
 
      21st Aug 2004
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" <(E-Mail Removed)> wrote in message
news:e$(E-Mail Removed)...
> 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
> >
> >

>
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      21st Aug 2004
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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help about AxSHDocVw.AxWebBrowser Eþref DURNA Microsoft C# .NET 0 17th Nov 2005 05:10 PM
AxSHDocVw.AxWebBrowser Component Question Michael C Microsoft C# .NET 3 25th Jan 2005 07:01 PM
AxSHDocVw.AxWebBrowser Kristof Thys Microsoft Dot NET Framework Forms 1 21st Dec 2004 09:25 PM
AxSHDocVw.AxWebBrowser Pengyu Microsoft C# .NET 1 20th May 2004 07:56 AM
AxSHDocVw.AxWebBrowser =?Utf-8?B?R3JlZw==?= Microsoft Dot NET Framework Forms 1 17th Feb 2004 02:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:56 AM.