Solved

Browser source

Posted on 1998-09-03
7
152 Views
Last Modified: 2010-04-30
Does ne1 know of a simple whay to retrieve the source of a webpage from a Web Browser Object in VB5.
0
Comment
Question by:hess
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 6

Accepted Solution

by:
clifABB earned 50 total points
ID: 1432934
Yes.
Using the internet transfer control, you can use the GetURL method:
Inet1.AccessType = icUseDefault
RichTextBox1.Text = Inet1.OpenURL ("http://www.mywebsite.com/index.html")

0
 
LVL 6

Expert Comment

by:clifABB
ID: 1432935
Sorry, I should have said OpenURL method.  :)
0
 
LVL 8

Expert Comment

by:Answers2000
ID: 1432936
LocationURL, as in this example:

' Navigates to a location (you probably already know this)
Private Sub Command1_Click()
WebBrowser1.Navigate "http://www.metacrawler.com"
End Sub

' Get the URL of the current location (the information you need)
Private Sub Command2_Click()
MsgBox WebBrowser1.LocationURL
End Sub


0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:hess
ID: 1432937
i do not see the internet trnasfer controll in my toolbox. Were can i get it.
0
 

Author Comment

by:hess
ID: 1432938
I think we arn't understanding eachother. I mean source as in source code

<HTML>
<HEAD>
<TITLE>.....
0
 
LVL 6

Expert Comment

by:clifABB
ID: 1432939
Right click on the toolbox.
Select 'Components...'
Check 'Microsoft Internet Transfer Control'
Click 'OK'
0
 

Author Comment

by:hess
ID: 1432940
Thanks!
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question