Solved

Browser source

Posted on 1998-09-03
7
150 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
  • 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

790 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