Skip to content

Planet-Source-Code/juha-s-derqvist-view-source-webbrowser__1-33527

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

View Source - Webbrowser

Description

View source - using webbrowser control.

No need of those msinet.ocx which all people always tell to use to get source of HTML-page.

This is a simple and beatiful way to do it.

PS..another even smart way is to add a webbrowser2.visible = false and to change viewsource function to use the hidden one.. instead of the webbrowser1 (which you may use to navigate pages) ; )

More Info

Source of webpage, opens notepad and if html-source is too big automaticly opens wordpad !!

Submitted On
By Juha s�derqvist
Level Intermediate
User Rating 4.3 (26 globes from 6 users)
Compatibility VB 6.0
Category Internet/ HTML
World Visual Basic
Archive File

Source Code

' a sub to be called from example webbrowser
' mnuviewsource
' webbrowser1 = webbrowser control
' combo1 = used as an addressbar
private sub viewsource
On Error Resume Next
If Combo1.Text <> "" Then
me.WebBrowser1.Navigate "view-source:" & Me.WebBrowser1.LocationURL 'view source
  else
'nothing here
  End If
end sub

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published