Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web browser source?

Status
Not open for further replies.

Mistero

Programmer
Dec 21, 2001
7
0
0
GB
I Have recently made a very basic web browser, i'd like to view the source inside vb, just like the view source in explorer.

Any ideas?

Thanks in advance!

G.Orrill
 
1. Place a textbox on your form with multiline set yes

2. Add the Microsoft Internet Transfer Control to your project

3. Use the following code, modifying as needed, I've put in it form load:

Private Sub Form_Load()
Dim sURL As String
sURL = " Text1.Text = Inet1.OpenURL(sURL)
End Sub


Jim Null [pc2]
"Solutions by Jim Null"
Web: Email: jim@jimnull.com
 
You could also use a rich text box for the output instead of a textbox if you desired.

Jim Null [pc2]
"Solutions by Jim Null"
Web: Email: jim@jimnull.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top