Solved

Browser source

Posted on 1998-09-03
7
148 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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 need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

911 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

21 Experts available now in Live!

Get 1:1 Help Now