Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Browser source

Posted on 1998-09-03
7
Medium Priority
?
155 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 200 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
Industry Leaders: 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

721 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