CodeItBetter Programming Another VB Programming Blog

How to view HTML Source

Posted on January 5, 2009
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
'Internet - How to view HTML Source

Option Explicit
 
'Add a Text Box and a Command Button to your form. Set Text Box MultiLine property to True.
'Add a WebBrowser Control to your form (Project -> Components => Microsoft Internet Controls)

Dim FileName As String
 
Private Sub Form_Load()
    FileName = "C:\Temp\Test.htm"
    WebBrowser1.Navigate2 (FileName)
End Sub
 
Private Sub Command1_Click()
    Open FileName For Input As #1
    Text1.Text = Input$(LOF(1), 1)
    Close #1
End Sub
Filed under: Internet Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.