Solved

Browser source

Posted on 1998-09-03
7
147 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
Comment Utility
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
Comment Utility
Sorry, I should have said OpenURL method.  :)
0
 
LVL 8

Expert Comment

by:Answers2000
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

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

Author Comment

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

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

Expert Comment

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

Author Comment

by:hess
Comment Utility
Thanks!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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 …
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now